84% simple-social-menu

Code Review | Simple Social Menu

WordPress plugin Simple Social Menu scored84%from 54 tests.

About plugin

  • Plugin page: simple-social-menu
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.8
  • WordPress version: 6.3.1
  • First release: Nov 11, 2021
  • Latest release: Nov 11, 2021
  • Number of updates: 4
  • Update frequency: every 18.3 days
  • Top authors: sunukunsinje (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /304 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.64ms] Passed 4 tests

An overview of server-side resources used by Simple Social Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.37 ▼1.03
Dashboard /wp-admin3.32 ▲0.0142.17 ▼4.07
Posts /wp-admin/edit.php3.37 ▲0.0143.45 ▼3.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.78 ▼1.72
Media Library /wp-admin/upload.php3.24 ▲0.0132.51 ▲1.41

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Social Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.44 ▼0.191.67 ▼0.1940.28 ▼3.85
Dashboard /wp-admin2,206 ▲154.88 ▼0.04110.16 ▲9.0039.69 ▼0.38
Posts /wp-admin/edit.php2,092 ▼02.05 ▲0.0039.69 ▲2.3234.56 ▲2.40
Add New Post /wp-admin/post-new.php1,514 ▼017.86 ▼5.69659.32 ▲38.7653.61 ▼2.48
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0298.34 ▼1.6041.02 ▼4.82

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-social-menu/simplesocialmenu.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (The view of the social menu on the page.) image required
You can look at the official readme.txt

simple-social-menu/simplesocialmenu.php 92% from 13 tests

Analyzing the main PHP file in "Simple Social Menu" version 1.0.0
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-social-menu.php" instead of "simplesocialmenu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin73 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP115873

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/twitter.png3.72KB1.34KB▼ 63.88%
images/facebook.png3.62KB1.20KB▼ 66.72%
images/linkedin.png3.65KB1.15KB▼ 68.41%
images/instagram.png4.72KB1.65KB▼ 64.96%
images/youtube.png3.99KB1.50KB▼ 62.47%