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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.81 ▼3.58 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.83 ▼5.19 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.31 ▲3.56 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 99.00 ▲9.11 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.21 ▼1.15 | 1.75 ▼0.75 | 44.74 ▲3.68 |
Dashboard /wp-admin | 2,206 ▲21 | 5.88 ▲0.79 | 106.45 ▼10.38 | 44.75 ▼0.92 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.04 | 39.97 ▼2.65 | 35.20 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 18.32 ▼4.92 | 615.03 ▲0.31 | 51.55 ▲3.55 |
Media Library /wp-admin/upload.php | 1,382 ▼0 | 4.17 ▼0.10 | 96.08 ▼0.98 | 41.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 61 | 95 | 210 |
JavaScript | 2 | 9 | 1 | 28 |
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 code | 0.46 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 10 | 83.33% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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