Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.35ms] Passed 4 tests
Server-side resources used by Better Section Navigation Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.79 ▲0.76 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.11 ▼4.58 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.93 ▼1.47 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.80 ▼6.82 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.57 ▼0.53 |
Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_better-section-nav |
widget_simple-section-nav |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Better Section Navigation Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.21 ▼1.18 | 1.73 ▼0.16 | 40.07 ▼7.47 |
Dashboard /wp-admin | 2,206 ▲15 | 5.90 ▲0.99 | 102.60 ▼3.41 | 38.28 ▼2.23 |
Posts /wp-admin/edit.php | 2,089 ▼1 | 2.02 ▲0.00 | 42.61 ▲0.92 | 35.96 ▲2.96 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 18.49 ▼4.82 | 618.06 ▲8.29 | 54.63 ▼0.24 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.19 ▼0.03 | 100.62 ▲1.45 | 41.02 ▼1.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- widget_simple-section-nav
- theysaidso_admin_options
- can_compress_scripts
- widget_better-section-nav
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/better-section-navigation/exclude-pages.php:44
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/better-section-navigation/class-better-section-nav.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/better-section-navigation/class-better-section-nav.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Screenshot of widget output on "Open Source" page under top level page "My Portfolio", running Twenty-Ten theme), #2 (Screenshot of widget configuration.)
better-section-navigation/better-section-nav.php 85% from 13 tests
The principal PHP file in "Better Section Navigation Widget" v. 1.6 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("better-section-navigation.php" instead of "better-section-nav.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected437 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 122 | 192 | 437 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
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 | 17.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 7.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
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
2 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 75.27KB | 20.56KB | ▼ 72.69% |
screenshot-1.png | 19.60KB | 18.83KB | ▼ 3.97% |