78% easy-menu-manager-wpzest

Code Review | Easy Menu Manager | WPZest

WordPress plugin Easy Menu Manager | WPZest scored 78% from 54 tests.

About plugin

  • Plugin page: easy-menu-manager...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.3
  • WordPress version: 6.3.1
  • First release: Nov 5, 2015
  • Latest release: Nov 9, 2015
  • Number of updates: 56
  • Update frequency: every 0.1 days
  • Top authors: wpzest (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active / 3,882 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 gracefully, with no errors

Server metrics [RAM: ▲0.81MB] [CPU: ▼6.47ms] Passed 4 tests

This is a short check of server-side resources used by Easy Menu Manager | WPZest
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.47 ▲1.0141.53 ▲3.34
Dashboard /wp-admin4.25 ▲0.9547.64 ▼2.20
Posts /wp-admin/edit.php4.32 ▲0.9748.42 ▼0.52
Add New Post /wp-admin/post-new.php6.34 ▲0.4574.18 ▼26.21
Media Library /wp-admin/upload.php4.10 ▲0.8737.18 ▲3.04

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Menu Manager | WPZest
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5513.21 ▼1.211.89 ▼0.1239.07 ▼2.73
Dashboard /wp-admin2,206 ▲214.89 ▲0.00104.45 ▲4.2340.93 ▼1.28
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0135.22 ▼7.3133.06 ▼3.46
Add New Post /wp-admin/post-new.php1,514 ▼3017.73 ▼0.56606.76 ▼27.6152.40 ▼3.49
Media Library /wp-admin/upload.php1,391 ▲34.15 ▼0.0294.77 ▼2.0141.65 ▼1.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-menu-manager-wpzest/menu_wpzest.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/easy-menu-manager-wpzest/includes/walker-nav-menu-edit.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/easy-menu-manager-wpzest/includes/media-template.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/easy-menu-manager-wpzest/menu-edit-wpzest.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (17 tag instead of maximum 10)
You can look at the official readme.txt

easy-menu-manager-wpzest/menu_wpzest.php 92% from 13 tests

The main PHP file in "Easy Menu Manager | WPZest" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-menu-manager-wpzest.php" instead of "menu_wpzest.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin13,945 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
CSS1544435,321
PHP206481,5774,691
SVG5062,913
JavaScript5252731,020

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.15
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes311.54%
▷ Concrete classes2388.46%
▷ Final classes28.70%
Methods138
▷ Static methods4834.78%
▷ Public methods10072.46%
▷ Protected methods3122.46%
▷ Private methods75.07%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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
6 PNG files occupy 0.39MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png82.14KB36.24KB▼ 55.88%
screenshot-4.png136.89KB51.96KB▼ 62.05%
images/red-trash.png1.01KB1.16KB0.00%
screenshot-1.png97.22KB36.15KB▼ 62.82%
screenshot-2.png81.40KB35.55KB▼ 56.33%