84% mpress-menu-wormhole

Code Review | mPress Menu Wormhole

WordPress plugin mPress Menu Wormhole scored 84% from 54 tests.

About plugin

  • Plugin page: mpress-menu-wormhole
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.7.1
  • WordPress version: 6.3.1
  • First release: May 1, 2013
  • Latest release: Jan 24, 2017
  • Number of updates: 6
  • Update frequency: every 228.2 days
  • Top authors: woodent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,988 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.03MB] [CPU: ▼1.16ms] Passed 4 tests

This is a short check of server-side resources used by mPress Menu Wormhole
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.81 ▼3.58
Dashboard /wp-admin3.34 ▲0.0345.83 ▼5.19
Posts /wp-admin/edit.php3.39 ▲0.0350.31 ▲3.56
Add New Post /wp-admin/post-new.php5.92 ▲0.0399.00 ▲9.11
Media Library /wp-admin/upload.php3.26 ▲0.0337.07 ▲0.57

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

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

Browser metrics Passed 4 tests

Checking browser requirements for mPress Menu Wormhole
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.21 ▼1.151.75 ▼0.7544.74 ▲3.68
Dashboard /wp-admin2,206 ▲215.88 ▲0.79106.45 ▼10.3844.75 ▼0.92
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0439.97 ▼2.6535.20 ▼2.07
Add New Post /wp-admin/post-new.php1,537 ▲1818.32 ▼4.92615.03 ▲0.3151.55 ▲3.55
Media Library /wp-admin/upload.php1,382 ▼04.17 ▼0.1096.08 ▼0.9841.40 ▼0.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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
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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/mpress-menu-wormhole/inc/walker-nav-menu-edit.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_nav_menus() in wp-content/plugins/mpress-menu-wormhole/views/view-metabox.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mpress-menu-wormhole/mpress-menu-wormhole.php:17

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: wormhole, nav, navigation, menu, nested menus...

mpress-menu-wormhole/mpress-menu-wormhole.php Passed 13 tests

The principal PHP file in "mPress Menu Wormhole" v. 1.1.2 is loaded by WordPress automatically on each request
58 characters long description:
Easily add an existing menu within another WordPress menu.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin238 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP46195210
JavaScript29128

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity15.00
▷ Minimum class complexity2.00
▷ Maximum class complexity28.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods1083.33%
▷ Public methods12100.00%
▷ Protected methods00.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin