84% menu-tamer

Code Review | Menu Tamer

WordPress plugin Menu Tamer scored84%from 54 tests.

About plugin

  • Plugin page: menu-tamer
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.5
  • WordPress version: 6.3.1
  • First release: Aug 23, 2012
  • Latest release: Jan 2, 2013
  • Number of updates: 7
  • Update frequency: every 18.9 days
  • Top authors: avendimedia (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,126 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

An overview of server-side resources used by Menu Tamer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.25 ▲2.56
Dashboard /wp-admin3.32 ▲0.0152.53 ▲0.75
Posts /wp-admin/edit.php3.37 ▲0.0150.28 ▲2.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.09 ▼4.18
Media Library /wp-admin/upload.php3.24 ▲0.0137.98 ▼2.13

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Menu Tamer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.191.81 ▲0.1245.61 ▲4.36
Dashboard /wp-admin2,195 ▲245.64 ▼0.0384.04 ▼17.9639.98 ▼6.22
Posts /wp-admin/edit.php2,103 ▲62.03 ▲0.0342.60 ▲4.9034.36 ▲1.18
Add New Post /wp-admin/post-new.php1,528 ▲223.09 ▲0.14634.32 ▼83.3363.18 ▲8.70
Media Library /wp-admin/upload.php1,403 ▼04.20 ▼0.14102.55 ▼2.7647.45 ▲5.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/menu-tamer/MenuTamerWalkerClass.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/menu-tamer/menu-tamer.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: nav menu, menus, menu, nav menus

menu-tamer/menu-tamer.php Passed 13 tests

Analyzing the main PHP file in "Menu Tamer" version 1.0.1
39 characters long description:
Make your nav menus easier to work with

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin201 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2200129
PHP3132442
Markdown114030

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods375.00%
▷ Public methods375.00%
▷ Protected methods125.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin