Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.85MB] [CPU: ▲12.70ms] Passed 4 tests
An overview of server-side resources used by WP Mobile Bottom Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.32 ▲1.85 | 56.86 ▲15.09 |
Dashboard /wp-admin | 5.15 ▲1.85 | 71.74 ▲23.66 |
Posts /wp-admin/edit.php | 5.27 ▲1.91 | 59.82 ▲13.78 |
Add New Post /wp-admin/post-new.php | 7.75 ▲1.87 | 97.43 ▲2.52 |
Media Library /wp-admin/upload.php | 5.08 ▲1.85 | 54.74 ▲19.41 |
Server storage [IO: ▲2.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 221 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
wp-bnav |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Mobile Bottom Menu: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,993 ▲246 | 13.28 ▼0.98 | 8.93 ▲7.23 | 42.63 ▼1.84 |
Dashboard /wp-admin | 2,267 ▲90 | 5.65 ▲0.06 | 85.46 ▼15.02 | 40.47 ▼3.71 |
Posts /wp-admin/edit.php | 2,169 ▲69 | 1.99 ▲0.01 | 35.22 ▼2.98 | 33.99 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,584 ▲58 | 23.09 ▲0.19 | 688.41 ▼5.33 | 54.81 ▲0.99 |
Media Library /wp-admin/upload.php | 1,472 ▲72 | 4.25 ▼0.02 | 97.50 ▼1.81 | 41.98 ▲0.09 |
Pre-made themes /wp-admin/admin.php?page=wp-bnav-settings#tab=pre-made-themes | 4,299 | 4.01 | 70.12 | 56.11 |
General settings /wp-admin/admin.php?page=wp-bnav-settings#tab=general-settings | 4,957 | 4.34 | 103.17 | 84.92 |
Free Vs Pro /wp-admin/admin.php?page=wp-bnav-settings#tab=free-vs-pro | 4,290 | 3.79 | 56.32 | 114.00 |
Search box /wp-admin/admin.php?page=wp-bnav-settings#tab=search-box | 4,275 | 3.99 | 55.04 | 76.09 |
Menu styles /wp-admin/admin.php?page=wp-bnav-settings#tab=menu-styles | 17,786 | 6.63 | 1,018.88 | 99.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- wp-bnav
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mobile-bottom-menu-for-wp/admin/partials/wp-bnav-admin-display.php
- > /wp-content/plugins/mobile-bottom-menu-for-wp/public/partials/wp-bnav-public-display.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WP_BNAV_PATH - assumed 'WP_BNAV_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mobile-bottom-menu-for-wp/public/class-wp-bnav-public.php on line 2
- > PHP Warning
Use of undefined constant WP_BNAV_PATH - assumed 'WP_BNAV_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mobile-bottom-menu-for-wp/includes/class-wp-bnav-render-dom.php on line 2
- > PHP Warning
require_once(WP_BNAV_PATHincludes/class-wp-bnav-settings.php): failed to open stream: No such file or directory in wp-content/plugins/mobile-bottom-menu-for-wp/public/class-wp-bnav-public.php on line 2
- > PHP Warning
require_once(WP_BNAV_PATHincludes/class-wp-bnav-settings.php): failed to open stream: No such file or directory in wp-content/plugins/mobile-bottom-menu-for-wp/includes/class-wp-bnav-render-dom.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'WP_BNAV_PATHincludes/class-wp-bnav-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/mobile-bottom-menu-for-wp/public/class-wp-bnav-public.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'WP_BNAV_PATHincludes/class-wp-bnav-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/mobile-bottom-menu-for-wp/includes/class-wp-bnav-render-dom.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #10, #11, #12, #13, #14, #4, #5, #6, #7, #8, #9 in mobile-bottom-menu-for-wp/assets to your readme.txt
mobile-bottom-menu-for-wp/wp-bnav.php 85% from 13 tests
Analyzing the main PHP file in "WP Mobile Bottom Menu" version 1.0.8
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mobile-bottom-menu-for-wp.php" instead of "wp-bnav.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
There were no executable files found in this plugin43,666 lines of code in 173 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 116 | 4,243 | 3,127 | 18,963 |
JavaScript | 7 | 1,309 | 499 | 6,605 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Sass | 16 | 970 | 3 | 5,674 |
CSS | 6 | 490 | 538 | 5,499 |
Markdown | 1 | 70 | 0 | 196 |
XML | 1 | 5 | 11 | 99 |
JSON | 3 | 0 | 0 | 96 |
YAML | 1 | 6 | 0 | 32 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 23.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 5.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 82 | |
▷ Abstract classes | 2 | 2.44% |
▷ Concrete classes | 80 | 97.56% |
▷ Final classes | 0 | 0.00% |
Methods | 421 | |
▷ Static methods | 65 | 15.44% |
▷ Public methods | 375 | 89.07% |
▷ Protected methods | 8 | 1.90% |
▷ Private methods | 38 | 9.03% |
Functions | 30 | |
▷ Named functions | 29 | 96.67% |
▷ Anonymous functions | 1 | 3.33% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.59MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/preview_layout_skin_nine.png | 60.31KB | 34.56KB | ▼ 42.69% |
admin/img/Jessica.png | 17.55KB | 7.51KB | ▼ 57.20% |
admin/img/money-back-logo.png | 6.89KB | 4.25KB | ▼ 38.34% |
admin/img/layout_preview_light_skin_one.png | 46.31KB | 21.14KB | ▼ 54.34% |
admin/img/John.png | 16.63KB | 6.67KB | ▼ 59.91% |