84% simple-responsive-menu

Code Review | Simple Responsive Menu

WordPress plugin Simple Responsive Menu scored84%from 54 tests.

About plugin

  • Plugin page: simple-responsive...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Oct 23, 2013
  • Latest release: Jan 18, 2014
  • Number of updates: 48
  • Update frequency: every 1.8 days
  • Top authors: sutharinfo (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

300+ active /12,303 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.70ms] Passed 4 tests

A check of server-side resources used by Simple Responsive Menu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.30 ▼1.31
Dashboard /wp-admin3.37 ▲0.0650.21 ▼0.27
Posts /wp-admin/edit.php3.42 ▲0.0648.12 ▼6.19
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.32 ▼11.02
Media Library /wp-admin/upload.php3.29 ▲0.0639.50 ▲1.32

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Responsive Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲17913.75 ▼0.627.67 ▲5.8143.19 ▼2.33
Dashboard /wp-admin2,219 ▲285.94 ▲0.05103.98 ▼3.3038.07 ▼3.45
Posts /wp-admin/edit.php2,105 ▲162.01 ▼0.0140.31 ▲6.2635.89 ▲0.41
Add New Post /wp-admin/post-new.php1,527 ▲1317.75 ▲0.18672.82 ▼9.6253.93 ▲0.97
Media Library /wp-admin/upload.php1,404 ▲194.22 ▲0.0295.70 ▼19.7145.00 ▼4.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-responsive-menu/simple-responsive-menu.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: jquery, menu, responsive, wordpress, navigation

simple-responsive-menu/simple-responsive-menu.php Passed 13 tests

Analyzing the main PHP file in "Simple Responsive Menu" version 2.1
66 characters long description:
This plugin is convert WordPress menus to Simple Responsive Menus.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected500 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16831445
JavaScript115955

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/rArrow.png0.17KB0.11KB▼ 36.57%
images/downArrow.png0.14KB0.11KB▼ 22.38%