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.62MB] [CPU: ▲5.13ms] Passed 4 tests
This is a short check of server-side resources used by Ultimate Image Hover Effects
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.62 | 53.59 ▲13.61 |
Dashboard /wp-admin | 3.94 ▲0.64 | 63.05 ▲8.37 |
Posts /wp-admin/edit.php | 3.98 ▲0.63 | 63.85 ▲12.31 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.63 | 90.74 ▼6.33 |
Media Library /wp-admin/upload.php | 3.83 ▲0.61 | 43.54 ▲6.18 |
Hover Effects /wp-admin/edit.php?post_type=u_hover_effect | 3.90 | 47.05 |
Add New /wp-admin/post-new.php?post_type=u_hover_effect | 3.88 | 48.68 |
Server storage [IO: ▲2.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 108 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ultimate Image Hover Effects
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,136 ▲390 | 16.21 ▲1.83 | 8.39 ▲6.21 | 41.77 ▼2.35 |
Dashboard /wp-admin | 2,423 ▲235 | 7.04 ▲1.19 | 138.27 ▲22.13 | 38.89 ▼3.55 |
Posts /wp-admin/edit.php | 2,335 ▲246 | 3.93 ▲1.88 | 58.70 ▲22.34 | 36.22 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,585 ▲52 | 23.53 ▲0.43 | 688.35 ▲7.78 | 37.22 ▼16.21 |
Media Library /wp-admin/upload.php | 1,471 ▲86 | 4.75 ▲0.62 | 93.38 ▼26.12 | 46.87 ▼2.80 |
Hover Effects /wp-admin/edit.php?post_type=u_hover_effect | 1,316 | 3.86 | 53.50 | 29.09 |
Add New /wp-admin/post-new.php?post_type=u_hover_effect | 10,226 | 5.24 | 148.00 | 75.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=u_hover_effect
- > Notice in wp-content/plugins/ultimate-image-hover-effects/admin/framework/classes/metabox.class.php+70
Trying to access array offset on value of type bool
SRP 50% 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
The following issues need your attention
- 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/ultimate-image-hover-effects/admin/framework/fields/select/load.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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:
- Tags: You are using too many tags: 13 tag instead of maximum 10
ultimate-image-hover-effects/ultimate-image-hover-effects.php 85% from 13 tests
This is the main PHP file of "Ultimate Image Hover Effects" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 183 characters long)
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
No dangerous file extensions were detected44,870 lines of code in 86 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 17,050 |
CSS | 12 | 338 | 80 | 15,020 |
JavaScript | 10 | 1,085 | 799 | 4,601 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 46 | 1,090 | 956 | 2,561 |
Sass | 6 | 341 | 0 | 2,089 |
PO File | 7 | 306 | 334 | 705 |
Markdown | 2 | 24 | 0 | 173 |
PHP code Passed 2 tests
Analyzing 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.56 |
Average class complexity | 14.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 2 | 6.25% |
▷ Concrete classes | 30 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 5 | 5.00% |
▷ Public methods | 100 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 53 | |
▷ Named functions | 53 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.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
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
admin/framework/assets/images/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
admin/framework/assets/images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
admin/framework/fields/select/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |