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 gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.67ms] Passed 4 tests
A check of server-side resources used by Shopp Image Tools
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.72 ▼6.16 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.03 ▲1.36 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.90 ▼1.64 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.19 ▼14.89 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.18 ▲0.01 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Shopp Image Tools
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.17 ▼1.43 | 1.69 ▼0.07 | 41.38 ▼0.45 |
Dashboard /wp-admin | 2,209 ▲21 | 5.91 ▲0.97 | 99.37 ▼5.78 | 42.50 ▲0.87 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▼0.01 | 39.03 ▼2.77 | 34.33 ▼3.33 |
Add New Post /wp-admin/post-new.php | 1,528 ▼17 | 23.46 ▲5.19 | 677.99 ▲66.99 | 54.49 ▲5.09 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▲0.02 | 94.90 ▼2.97 | 42.99 ▲0.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shopp-image-tools/inc/adminui.php:4
- > PHP Fatal error
Uncaught Error: Class 'AdminController' not found in wp-content/plugins/shopp-image-tools/inc/admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shopp-image-tools/shoppimagetools.php:35
- > PHP Fatal error
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 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
Please fix the following attributes:
- Tested up to: Version format is invalid
shopp-image-tools/shoppimagetools.php 85% from 13 tests
Analyzing the main PHP file in "Shopp Image Tools" version 1.3.0
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 308 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("shopp-image-tools.php" instead of "shoppimagetools.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin647 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 158 | 66 | 485 |
JavaScript | 1 | 26 | 20 | 102 |
CSS | 1 | 11 | 0 | 60 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 21.75 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 4 | 12.50% |
▷ Public methods | 13 | 40.62% |
▷ Protected methods | 19 | 59.38% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/transparent-pixel.png | 0.17KB | 0.12KB | ▼ 30.34% |
resources/nuvola-tick-16px.png | 0.86KB | 0.62KB | ▼ 28.65% |
resources/nuvola-cross-16px.png | 0.98KB | 0.88KB | ▼ 10.39% |