Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.13ms] Passed 4 tests
An overview of server-side resources used by Menu In Post
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.32 ▼1.40 |
Dashboard /wp-admin | 3.32 ▲0.02 | 54.51 ▲6.94 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.64 ▲0.83 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 91.07 ▼3.66 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.07 ▲3.72 |
Menu In Post Tools /wp-admin/tools.php?page=menu-in-post | 3.22 | 30.55 |
Menu In Post /wp-admin/options-general.php?page=menu-in-post-options | 3.22 | 29.61 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Menu In Post
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲157 | 13.40 ▼0.95 | 9.23 ▲7.62 | 41.33 ▼2.47 |
Dashboard /wp-admin | 2,203 ▲23 | 5.47 ▼0.08 | 86.49 ▼6.74 | 37.17 ▼7.63 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.95 ▼0.06 | 40.73 ▲3.83 | 36.42 ▲3.40 |
Add New Post /wp-admin/post-new.php | 1,541 ▲6 | 23.29 ▲0.19 | 669.64 ▲20.55 | 63.68 ▲6.05 |
Media Library /wp-admin/upload.php | 1,399 ▼4 | 4.18 ▼0.07 | 98.47 ▼3.58 | 43.48 ▼1.23 |
Menu In Post Tools /wp-admin/tools.php?page=menu-in-post | 859 | 1.65 | 34.09 | 30.39 |
Menu In Post /wp-admin/options-general.php?page=menu-in-post-options | 903 | 1.66 | 25.17 | 30.97 |
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_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/menu-in-post/menu-in-post.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/menu-in-post/admin/admin.php:93
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: shortcode, menu in page, menu in post, display menu, menu
menu-in-post/menu-in-post.php Passed 13 tests
The entry point to "Menu In Post" version 1.2.6 is a PHP file that has certain tags in its header comment area
60 characters long description:
A simple but flexible plugin to add menus to a post or page.
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
Good job! No executable or dangerous file extensions detected1,287 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 73 | 217 | 1,138 |
JavaScript | 4 | 5 | 4 | 92 |
CSS | 2 | 13 | 2 | 57 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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 were not PNG files found in your plugin