Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.08ms] Passed 4 tests
Analyzing server-side resources used by Nusprite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.97 ▼5.06 |
Dashboard /wp-admin | 3.47 ▲0.16 | 50.92 ▼2.48 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 53.38 ▲3.78 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 94.27 ▼4.57 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 43.60 ▲5.44 |
Documentation /wp-admin/admin.php?page=nusprite-documentation | 3.36 | 37.39 |
Space on disk /wp-admin/admin.php?page=nusprite-space-on-disk | 3.38 | 33.93 |
Uninstall /wp-admin/admin.php?page=nusprite-uninstall | 3.36 | 36.19 |
Troubleshooting /wp-admin/admin.php?page=nusprite-troubleshooting | 3.35 | 32.96 |
Create a sprite image /wp-admin/admin.php?page=nusprite-create-sprite | 3.36 | 39.24 |
Sprites /wp-admin/admin.php?page=nusprite | 3.36 | 32.89 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_nusprite_items |
wp_nusprite_sprites |
wp_nusprite_versions |
New WordPress options |
---|
nusprite_db_version |
widget_theysaidso_widget |
can_compress_scripts |
nusprite_plugin_version |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Nusprite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲67 | 14.25 ▼0.31 | 1.67 ▼0.31 | 44.38 ▼0.20 |
Dashboard /wp-admin | 2,259 ▲82 | 5.63 ▼0.06 | 96.36 ▲1.52 | 40.28 ▲0.62 |
Posts /wp-admin/edit.php | 2,164 ▲64 | 2.04 ▲0.10 | 39.58 ▲0.84 | 37.30 ▼0.81 |
Add New Post /wp-admin/post-new.php | 1,562 ▲34 | 23.19 ▲0.04 | 689.38 ▲2.36 | 51.05 ▼4.18 |
Media Library /wp-admin/upload.php | 1,464 ▲61 | 4.21 ▼0.08 | 111.02 ▲5.86 | 46.75 ▼2.62 |
Documentation /wp-admin/admin.php?page=nusprite-documentation | 994 | 2.12 | 29.62 | 33.27 |
Space on disk /wp-admin/admin.php?page=nusprite-space-on-disk | 891 | 2.01 | 25.95 | 41.75 |
Uninstall /wp-admin/admin.php?page=nusprite-uninstall | 838 | 2.03 | 24.35 | 28.85 |
Troubleshooting /wp-admin/admin.php?page=nusprite-troubleshooting | 829 | 2.03 | 25.23 | 27.24 |
Create a sprite image /wp-admin/admin.php?page=nusprite-create-sprite | 837 | 2.04 | 26.09 | 25.82 |
Sprites /wp-admin/admin.php?page=nusprite | 845 | 1.99 | 27.86 | 26.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/nusprite/nusprite.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nusprite/classes/class-nusprite-admin.php:2
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 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
1 plugin tags: sprite
nusprite/nusprite.php Passed 13 tests
"Nusprite" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
20 characters long description:
Sprite CSS generator
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
No dangerous file extensions were detected1,878 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 285 | 74 | 1,611 |
PO File | 1 | 75 | 97 | 183 |
CSS | 1 | 3 | 0 | 84 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 46 | 63.89% |
▷ Public methods | 72 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 10 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin