83% wdes-responsive-mobile-menu

Code Review | WDES Responsive Mobile Menu

WordPress plugin WDES Responsive Mobile Menu scored83%from 54 tests.

About plugin

  • Plugin page: wdes-responsive-m...
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2016
  • Latest release: Apr 15, 2022
  • Number of updates: 81
  • Update frequency: every 25.8 days
  • Top authors: master buldog (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /8,964 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by WDES Responsive Mobile Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.87 ▲0.33
Dashboard /wp-admin3.37 ▲0.0750.76 ▲4.64
Posts /wp-admin/edit.php3.49 ▲0.1359.47 ▲13.54
Add New Post /wp-admin/post-new.php5.95 ▲0.0788.02 ▲1.15
Media Library /wp-admin/upload.php3.27 ▲0.0543.39 ▲11.47

Server storage [IO: ▲1.38MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

WDES Responsive Mobile Menu: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,092 ▲35715.45 ▲1.046.70 ▲5.0138.47 ▼7.67
Dashboard /wp-admin2,388 ▲1976.65 ▲0.75132.31 ▲16.5839.70 ▼6.40
Posts /wp-admin/edit.php2,294 ▲2233.56 ▲1.5553.65 ▲18.9234.52 ▼1.87
Add New Post /wp-admin/post-new.php1,553 ▲1823.34 ▲0.27666.86 ▼2.7237.06 ▼17.96
Media Library /wp-admin/upload.php1,430 ▲484.32 ▲0.1583.96 ▼16.5345.71 ▲2.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • wdes_rmm_settings
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wdes-responsive-mobile-menu/lib/templates/layout-1.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: navigation, popup, mobile menu, mobile, anthonycarboncom...

wdes-responsive-mobile-menu/wdes-rmm.php 69% from 13 tests

The main PHP script in "WDES Responsive Mobile Menu" version 1.2.5 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path folder does not exist ("/i18n/languages/")
  • Main file name: Name the main plugin file the same as the plugin slug ("wdes-responsive-mobile-menu.php" instead of "wdes-rmm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin3,026 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP1178921,561
SVG100655
JavaScript31224600
CSS302210

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1477.78%
▷ Protected methods00.00%
▷ Private methods422.22%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.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
There were not PNG files found in your plugin