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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.28ms] Passed 4 tests
Server-side resources used by Sprite Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.78 ▼2.66 |
Dashboard /wp-admin | 3.37 ▲0.06 | 46.46 ▲0.11 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.45 ▼2.69 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 97.99 ▲8.38 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.02 ▲0.13 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_sprite_generator |
wp_sprite_generator_image |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Sprite Generator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 13.32 ▼1.10 | 2.08 ▲0.45 | 42.28 ▼0.77 |
Dashboard /wp-admin | 2,224 ▲39 | 4.89 ▼0.01 | 110.69 ▲7.63 | 74.61 ▲31.14 |
Posts /wp-admin/edit.php | 2,110 ▲18 | 2.01 ▲0.00 | 38.39 ▼5.43 | 34.36 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 18.36 ▼4.75 | 685.28 ▼26.67 | 63.71 ▲4.12 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.11 ▼0.16 | 115.80 ▲11.47 | 44.92 ▼0.09 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sprite-generator/sprite_generator.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: multiple image, speed, sprite, optimize image, generator
sprite-generator/sprite_generator.php 77% from 13 tests
The main PHP script in "Sprite Generator" version 1.00 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path should use only dashes and lowercase characters ("")
- Domain Path: The domain path should be prefixed with a forward slash character ("/")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sprite-generator.php" instead of "sprite_generator.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
Good job! No executable or dangerous file extensions detected550 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 72 | 33 | 488 |
CSS | 2 | 13 | 0 | 60 |
JavaScript | 1 | 2 | 4 | 2 |
PHP code Passed 2 tests
Analyzing 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.32 |
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 | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/manage.png | 0.68KB | 0.22KB | ▼ 67.05% |
images/icon.png | 0.56KB | 0.10KB | ▼ 81.99% |
images/remove.png | 1.27KB | 1.20KB | ▼ 5.76% |
images/edit.png | 0.87KB | 0.87KB | 0.00% |