78% eds-responsive-menu

Code Review | eDS Responsive Menu

WordPress plugin eDS Responsive Menu scored78%from 54 tests.

About plugin

  • Plugin page: eds-responsive-menu
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.0
  • WordPress version: 6.3.1
  • First release: Aug 10, 2016
  • Latest release: Dec 8, 2018
  • Number of updates: 48
  • Update frequency: every 17.7 days
  • Top authors: proscriptsell (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /10,844 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.17MB] [CPU: ▲1.61ms] Passed 4 tests

An overview of server-side resources used by eDS Responsive Menu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1642.33 ▼1.11
Dashboard /wp-admin3.54 ▲0.2361.10 ▲6.91
Posts /wp-admin/edit.php3.58 ▲0.2256.28 ▲3.38
Add New Post /wp-admin/post-new.php6.04 ▲0.1695.63 ▼2.73
Media Library /wp-admin/upload.php3.37 ▲0.1446.25 ▲8.74

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 110 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
_eds_Options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for eDS Responsive Menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,189 ▲44315.87 ▲1.587.23 ▲5.2937.08 ▼8.39
Dashboard /wp-admin2,460 ▲2727.01 ▲2.14135.51 ▲27.5344.60 ▲3.14
Posts /wp-admin/edit.php2,371 ▲2823.48 ▲1.4962.45 ▲26.2838.90 ▲5.68
Add New Post /wp-admin/post-new.php1,745 ▲22523.69 ▲0.37594.44 ▼27.6734.78 ▼18.12
Media Library /wp-admin/upload.php1,508 ▲1204.86 ▲0.6290.40 ▼8.6542.70 ▼5.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • _eds_Options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/eds-responsive-menu/inc/css/eds_dynamic_css.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/eds-responsive-menu/inc/eds_menu_frontend.php:234
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/eds-responsive-menu/eds-responsive-menu.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Initial Setup), #2 (Menu Symbol Settings), #3 (Menu Settings), #4 (Sub Menu Settings), #5 (Addition Setup), #6 (Backup/import/export)
  • Tags: You are using too many tags: 13 tag instead of maximum 10
Please take inspiration from this readme.txt

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

The main PHP script in "eDS Responsive Menu" version 1.2 is automatically included on every request by WordPress
110 characters long description:
eDS Responsive Menu Plugins,Control the edge, skins, toggle breakpoints, and more, right from the admin panel.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin30,075 lines of code in 83 files:
LanguageFilesBlank linesComment linesLines of code
JSON20013,773
JavaScript101,1748265,085
CSS8162544,489
PHP471,1859353,325
Sass531801,950
SVG401748
PO File7306334705

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity97.00
Average method complexity5.08
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes38
▷ Abstract classes25.26%
▷ Concrete classes3694.74%
▷ Final classes00.00%
Methods121
▷ Static methods54.13%
▷ Public methods121100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions47
▷ Named functions47100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.37MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/toggle-icon.png0.98KB0.13KB▼ 86.91%
screenshot-6.png87.84KB40.13KB▼ 54.31%
screenshot-4.png58.37KB29.82KB▼ 48.91%
screenshot-5.png53.80KB25.22KB▼ 53.12%
screenshot-3.png68.54KB34.14KB▼ 50.18%