83% move-nav-menu

Code Review | Move Nav-Menu

WordPress plugin Move Nav-Menu scored83%from 54 tests.

About plugin

  • Plugin page: move-nav-menu
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.2.1
  • WordPress version: 6.3.1
  • First release: May 4, 2015
  • Latest release: Jun 8, 2015
  • Number of updates: 4
  • Update frequency: every 9.8 days
  • Top authors: tormorten (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,378 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.82ms] Passed 4 tests

An overview of server-side resources used by Move Nav-Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.58 ▲1.18
Dashboard /wp-admin3.31 ▼0.0348.90 ▼21.10
Posts /wp-admin/edit.php3.37 ▲0.0150.90 ▲0.30
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.26 ▼9.84
Media Library /wp-admin/upload.php3.24 ▲0.0136.62 ▼0.62

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Move Nav-Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.72 ▲0.371.73 ▲0.0442.00 ▼0.51
Dashboard /wp-admin2,203 ▲265.65 ▼0.0282.49 ▼8.5538.91 ▼1.05
Posts /wp-admin/edit.php2,108 ▲82.03 ▲0.0839.91 ▲5.8836.58 ▲4.08
Add New Post /wp-admin/post-new.php1,547 ▲1918.12 ▼4.96621.11 ▼63.6564.41 ▲13.86
Media Library /wp-admin/upload.php1,408 ▲84.20 ▲0.0296.32 ▼5.8941.56 ▼4.97

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 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/move-nav-menu/move-nav-menu.php:60

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: nav-menu, move nav, move, menu, admin...

move-nav-menu/move-nav-menu.php 77% from 13 tests

Analyzing the main PHP file in "Move Nav-Menu" version 1.0.2
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("lang")
  • Domain Path: Prefix the domain path with a forward slash character ("/lang")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1223833

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin