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
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.51ms] Passed 4 tests
This is a short check of server-side resources used by WP Master Business Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 39.96 ▼8.27 |
Dashboard /wp-admin | 3.40 ▲0.09 | 48.37 ▲0.50 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 53.90 ▲10.07 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 86.05 ▼23.68 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.73 ▲5.43 |
Instructions /wp-admin/admin.php?page=wpm_business_menu_instruction | 3.29 | 32.04 |
All Business Menus /wp-admin/edit.php?post_type=wpm_business_menu | 3.36 | 36.11 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Master Business Menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲100 | 13.32 ▼1.06 | 1.72 ▼0.22 | 43.63 ▼3.04 |
Dashboard /wp-admin | 2,232 ▲44 | 5.88 ▲0.79 | 110.21 ▼8.76 | 85.32 ▲41.87 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.20 ▲0.16 | 36.57 ▼2.79 | 33.55 ▼7.32 |
Add New Post /wp-admin/post-new.php | 1,704 ▲175 | 22.55 ▲4.44 | 662.80 ▲10.02 | 31.03 ▼12.27 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.21 ▼0.03 | 99.44 ▼6.45 | 75.38 ▲32.16 |
Instructions /wp-admin/admin.php?page=wpm_business_menu_instruction | 898 | 1.80 | 24.23 | 30.80 |
All Business Menus /wp-admin/edit.php?post_type=wpm_business_menu | 1,117 | 2.16 | 31.45 | 33.15 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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 everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-master-business-menu/admin/partials/wpm-business-menu-admin-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_title() in wp-content/plugins/wp-master-business-menu/public/partials/wpm-business-menu-public-display.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (wpmbm-1.png), #2 (wpmbm-2.png)
wp-master-business-menu/wpm-business-menu.php 77% from 13 tests
The main PHP script in "WP Master Business Menu" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 170 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("wp-master-business-menu.php" instead of "wpm-business-menu.php")
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
No dangerous file extensions were detected700 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 143 | 570 | 498 |
CSS | 2 | 1 | 9 | 134 |
JavaScript | 2 | 11 | 34 | 47 |
SVG | 4 | 0 | 4 | 21 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wpmbm-1.png | 59.26KB | 27.79KB | ▼ 53.11% |
wpmbm-2.png | 38.52KB | 15.99KB | ▼ 58.49% |