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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼7.73ms] Passed 4 tests
Server-side resources used by WP SmartCrop
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 39.88 ▼4.96 |
Dashboard /wp-admin | 3.45 ▲0.14 | 46.24 ▼3.42 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 48.72 ▲2.76 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 82.30 ▼25.28 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 36.76 ▲4.66 |
WP SmartCrop /wp-admin/options-general.php?page=wp-smartcrop | 3.34 | 33.62 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP SmartCrop
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 13.52 ▼0.88 | 7.86 ▲6.14 | 39.48 ▼7.38 |
Dashboard /wp-admin | 2,199 ▲22 | 5.61 ▼0.05 | 84.22 ▼16.43 | 37.67 ▼8.82 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▼0.02 | 39.78 ▼1.66 | 37.26 ▲4.61 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.49 ▲0.46 | 671.17 ▲57.09 | 60.65 ▲10.99 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.30 ▲0.13 | 96.28 ▼5.39 | 43.77 ▼0.12 |
WP SmartCrop /wp-admin/options-general.php?page=wp-smartcrop | 857 | 1.99 | 21.42 | 30.00 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
wp-smartcrop/wp-smartcrop.php 92% from 13 tests
This is the main PHP file of "WP SmartCrop" version 2.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin1,222 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 55 | 49 | 724 |
JavaScript | 3 | 9 | 40 | 314 |
CSS | 2 | 2 | 3 | 184 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 143.00 |
▷ Minimum class complexity | 143.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 5.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 1 | 2.86% |
▷ Public methods | 20 | 57.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 42.86% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256.png | 9.84KB | 10.49KB | 0.00% |
assets/icon-128.png | 4.46KB | 4.72KB | 0.00% |