Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.79ms] Passed 4 tests
Analyzing server-side resources used by WP Nanobar.js
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.91 ▼7.48 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.88 ▼4.33 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.55 ▼2.87 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.60 ▼0.48 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.36 ▲0.48 |
WP Nanobar.js /wp-admin/tools.php?page=wp_nanobar.js | 3.21 | 33.92 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP Nanobar.js: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.74 ▲0.54 | 4.44 ▲2.58 | 43.52 ▼1.21 |
Dashboard /wp-admin | 2,196 ▲25 | 5.51 ▼0.10 | 87.36 ▼12.22 | 44.13 ▼0.95 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▼0.01 | 38.32 ▲0.88 | 34.34 ▲0.39 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.36 ▼0.12 | 688.79 ▼1.64 | 63.76 ▲5.71 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.03 | 109.78 ▲0.16 | 48.71 ▲3.96 |
WP Nanobar.js /wp-admin/tools.php?page=wp_nanobar.js | 792 | 2.03 | 25.12 | 27.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-nanobar-js/uninstall.php
- > /wp-content/plugins/wp-nanobar-js/wp-nanobar.php
- > /wp-content/plugins/wp-nanobar-js/settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: javascript, loader, loading, nanobar, bar
wp-nanobar-js/wp-nanobar.php 92% from 13 tests
"WP Nanobar.js" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-nanobar-js.php" instead of "wp-nanobar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin177 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 17 | 22 | 104 |
PHP | 4 | 35 | 8 | 73 |
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.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin