84% menu-override

Code Review | Menu Override

WordPress plugin Menu Override scored 84% from 54 tests.

About plugin

  • Plugin page: menu-override
  • Plugin version: 0.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.9
  • WordPress version: 6.3.1
  • First release: Sep 9, 2013
  • Latest release: Apr 17, 2014
  • Number of updates: 7
  • Update frequency: every 31.4 days
  • Top authors: fillup17 (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active / 4,457 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.09MB] [CPU: ▼4.86ms] Passed 4 tests

This is a short check of server-side resources used by Menu Override
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.41 ▼4.29
Dashboard /wp-admin3.33 ▲0.0246.91 ▼1.83
Posts /wp-admin/edit.php3.38 ▲0.0250.93 ▲3.13
Add New Post /wp-admin/post-new.php5.46 ▼0.4380.13 ▼12.93
Media Library /wp-admin/upload.php3.25 ▲0.0236.25 ▼0.39

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Menu Override
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.431.80 ▲0.1639.73 ▼5.32
Dashboard /wp-admin2,206 ▲184.86 ▼0.24107.60 ▲2.8942.23 ▼0.44
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0339.77 ▲2.9334.22 ▼1.06
Add New Post /wp-admin/post-new.php6,514 ▲5,00020.33 ▲2.80846.32 ▲176.5555.70 ▲1.84
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0299.29 ▲0.8242.54 ▼2.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/menu-override/MenuOverride.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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
3 plugin tags: custom navigation, custom menu, menu override

menu-override/MenuOverride.php 85% from 13 tests

The main file in "Menu Override" v. 0.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("menu-override.php" instead of "MenuOverride.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 317 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin110 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12127110

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity5.20
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin