Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼4.38ms] Passed 4 tests
A check of server-side resources used by Shift8 Full Nav
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 39.28 ▼6.13 |
Dashboard /wp-admin | 3.51 ▲0.21 | 50.14 ▼0.62 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 50.64 ▲1.81 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 86.38 ▼12.59 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.99 ▲7.20 |
Full Nav Settings /wp-admin/admin.php?page=shift8-full-navigation/components/settings.php/custom | 3.37 | 32.77 |
Shift8 /wp-admin/admin.php?page=shift8-settings | 3.40 | 38.43 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Shift8 Full Nav
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲254 | 14.84 ▲0.44 | 1.67 ▲0.06 | 41.47 ▼9.29 |
Dashboard /wp-admin | 2,395 ▲207 | 6.65 ▲0.79 | 127.65 ▲13.78 | 38.86 ▼4.18 |
Posts /wp-admin/edit.php | 2,304 ▲215 | 3.58 ▲1.55 | 55.38 ▲17.91 | 35.19 ▲1.32 |
Add New Post /wp-admin/post-new.php | 1,557 ▲23 | 23.36 ▲0.22 | 669.90 ▲23.46 | 37.26 ▼15.64 |
Media Library /wp-admin/upload.php | 1,443 ▲58 | 4.35 ▲0.10 | 82.38 ▼23.50 | 43.35 ▼5.31 |
Full Nav Settings /wp-admin/admin.php?page=shift8-full-navigation/components/settings.php/custom | 2,978 | 4.39 | 117.82 | 31.42 |
Shift8 /wp-admin/admin.php?page=shift8-settings | 998 | 3.28 | 40.24 | 23.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=shift8-full-navigation/components/settings.php/custom
- > Notice in wp-content/plugins/shift8-full-navigation/components/functions.php+257
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=shift8-full-navigation/components/settings.php/custom
- > Notice in wp-content/plugins/shift8-full-navigation/shift8-fullnav.php+64
Undefined variable: shift8_fullnav_menu
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/shift8-full-navigation/components/enqueuing.php:286
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/shift8-full-navigation/shift8-fullnav.php:12
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/shift8-full-navigation/components/functions.php:78
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shift8-settings
- > Network (severe)
wp-content/plugins/shift8-full-navigation//img/shift8pluginicon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
shift8-full-navigation/shift8-fullnav.php 92% from 13 tests
The principal PHP file in "Shift8 Full Nav" v. 1.67 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("shift8-full-navigation.php" instead of "shift8-fullnav.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
Everything looks great! No dangerous files found in this plugin17,532 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 15,596 |
PHP | 4 | 97 | 70 | 819 |
JavaScript | 4 | 302 | 528 | 703 |
CSS | 2 | 26 | 8 | 414 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected