Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/nice-navigation/nice-navigation.php+72
Methods with the same name as their class will not be constructors in a future version of PHP; Nice_Navigation has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼58.58ms] Passed 4 tests
This is a short check of server-side resources used by Nice Navigation
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.62 ▼36.31 |
Dashboard /wp-admin | 2.11 ▼1.23 | 6.69 ▼68.49 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 6.09 ▼40.15 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 7.50 ▼89.35 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.33 ▼30.49 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_nice_navigation |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Nice Navigation
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲137 | 13.60 ▼0.99 | 9.65 ▲7.75 | 42.68 ▼0.87 |
Dashboard /wp-admin | 2,206 ▲15 | 5.88 ▲0.75 | 97.70 ▼7.79 | 38.96 ▼1.70 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.04 | 41.24 ▼0.22 | 34.36 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 18.27 ▼4.89 | 600.73 ▼75.15 | 50.90 ▼9.48 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.21 ▼0.00 | 95.10 ▼6.22 | 42.23 ▼1.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/nice-navigation/nice-navigation.php+72
Methods with the same name as their class will not be constructors in a future version of PHP; Nice_Navigation has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_nice_navigation
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 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/nice-navigation/nice-navigation.php:11
- > 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 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Screenshots: Add images for these screenshots: #1 (It's your menu. Before and after Nice Navigation.), #2 (Nice Navigation widget configuration. Choose function and layout/look.)
- Plugin Name: Please specify the plugin name on the first line (
=== nice-navigation ===
)
nice-navigation/nice-navigation.php Passed 13 tests
"Nice Navigation" version 1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
97 characters long description:
Adds a widget that makes your page list expandable/collapsible with a nice slide animation effect
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin239 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 54 | 63 | 160 |
JavaScript | 1 | 21 | 15 | 41 |
CSS | 1 | 7 | 0 | 38 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 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 | 7 | |
▷ Named functions | 7 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 17.21KB | 6.06KB | ▼ 64.80% |