Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.19ms] Passed 4 tests
An overview of server-side resources used by ShiftNav - Responsive Mobile Menu
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 45.89 ▲2.71 |
Dashboard /wp-admin | 3.48 ▲0.17 | 48.19 ▼3.88 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 48.35 ▲0.63 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 90.16 ▼6.36 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 39.28 ▲0.86 |
ShiftNav /wp-admin/themes.php?page=shiftnav-settings | 3.40 | 38.55 |
Server storage [IO: ▲2.60MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 9 new options
New WordPress options |
---|
shiftnav_shiftnav-main |
shiftnav_general |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
shiftnav_togglebar |
Browser metrics Passed 4 tests
Checking browser requirements for ShiftNav - Responsive Mobile Menu
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,105 ▲319 | 13.49 ▼0.87 | 15.65 ▲13.50 | 60.09 ▲14.38 |
Dashboard /wp-admin | 2,202 ▲25 | 5.57 ▼0.05 | 86.42 ▼16.68 | 37.90 ▼6.46 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.97 ▼0.05 | 38.58 ▲1.17 | 35.46 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 18.01 ▼5.17 | 608.65 ▼66.92 | 71.68 ▲18.19 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.20 ▲0.02 | 98.81 ▲0.61 | 43.04 ▼3.43 |
ShiftNav /wp-admin/themes.php?page=shiftnav-settings | 2,034 | 3.58 | 75.48 | 108.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- shiftnav_shiftnav-main
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- shiftnav_togglebar
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- shiftnav_general
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'SHIFTNAV_DIRcustomizer/customizer.styles.generator.php' (include_path='.:/usr/share/php') in wp-content/plugins/shiftnav-responsive-mobile-menu/customizer/customizer.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shiftnav-responsive-mobile-menu/customizer/customizer.styles.manager.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shiftnav-responsive-mobile-menu/includes/functions.php:2
- > PHP Warning
require_once(SHIFTNAV_DIRcustomizer/customizer.styles.generator.php): failed to open stream: No such file or directory in wp-content/plugins/shiftnav-responsive-mobile-menu/customizer/customizer.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/shiftnav-responsive-mobile-menu/includes/ShiftNavWalker.class.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shiftnav-responsive-mobile-menu/admin/settings.config.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shiftnav-responsive-mobile-menu/admin/settings.menu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shiftnav-responsive-mobile-menu/admin/settings.config.php:6
- > PHP Warning
Use of undefined constant SHIFTNAV_DIR - assumed 'SHIFTNAV_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/shiftnav-responsive-mobile-menu/customizer/customizer.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: sidebar, responsive, off-canvas, navigation, slide...
shiftnav-responsive-mobile-menu/shiftnav-responsive-mobile-menu.php Passed 13 tests
The main PHP file in "ShiftNav - Responsive Mobile Menu" ver. 1.7.2 adds more information about the plugin and also serves as the entry point for this plugin
39 characters long description:
An off-canvas mobile menu for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin13,927 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 129 | 96 | 6,616 |
PHP | 13 | 994 | 844 | 2,756 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 5 | 338 | 234 | 1,058 |
LESS | 11 | 97 | 62 | 809 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 31.17 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 58 | |
▷ Static methods | 2 | 3.45% |
▷ Public methods | 55 | 94.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.17% |
Functions | 86 | |
▷ Named functions | 85 | 98.84% |
▷ Anonymous functions | 1 | 1.16% |
Constants | 15 | |
▷ Global constants | 15 | 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
No PNG files were detected