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.17MB] [CPU: ▼14.56ms] Passed 4 tests
This is a short check of server-side resources used by Postmenu
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 27.54 ▼14.73 |
Dashboard /wp-admin | 3.51 ▲0.21 | 39.15 ▼13.84 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 36.89 ▼12.04 |
Add New Post /wp-admin/post-new.php | 5.83 ▼0.06 | 74.84 ▼17.63 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 30.44 ▼6.15 |
Postmenu /wp-admin/options-general.php?page=postmenu | 3.50 | 31.68 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
postmenu_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Postmenu
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲165 | 13.67 ▼0.65 | 5.76 ▲3.96 | 42.21 ▼4.86 |
Dashboard /wp-admin | 2,214 ▲23 | 5.87 ▼0.03 | 97.00 ▼11.41 | 37.55 ▼5.61 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.22 ▲0.19 | 34.66 ▼0.96 | 30.90 ▼2.55 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 18.53 ▼4.53 | 596.04 ▼80.64 | 63.11 ▲7.71 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.25 ▲0.04 | 98.99 ▼3.73 | 41.85 ▼0.50 |
Postmenu /wp-admin/options-general.php?page=postmenu | 1,078 | 2.07 | 24.46 | 30.17 |
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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=postmenu
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-walker-nav-menu-edit.php): failed to open stream: No such file or directory in wp-content/plugins/postmenu/admin/includes/class-posmenu-walker-nav-menu-edit.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postmenu/addons/postmenu-post-type-wpml.php:8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/postmenu/admin/includes/class-posmenu-walker-nav-menu-edit.php on line 19
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-walker-nav-menu-edit.php' (include_path='.:/usr/share/php') in wp-content/plugins/postmenu/admin/includes/class-posmenu-walker-nav-menu-edit.php on line 19
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 14 tag instead of maximum 10
postmenu/postmenu.php 92% from 13 tests
This is the main PHP file of "Postmenu" version 1.4.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 185 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin3,855 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 471 | 1,110 | 2,339 |
JavaScript | 2 | 155 | 159 | 1,125 |
CSS | 2 | 3 | 10 | 332 |
SVG | 1 | 0 | 0 | 59 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 25.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 12 | 11.88% |
▷ Public methods | 94 | 93.07% |
▷ Protected methods | 1 | 0.99% |
▷ Private methods | 6 | 5.94% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin