Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.06ms] Passed 4 tests
A check of server-side resources used by Image Hover Effects Widgets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.94 ▼7.10 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.73 ▼0.80 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 51.57 ▲5.25 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.04 ▲2.66 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.58 ▼11.00 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/egw-widgets-hover-effects/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/egw-widgets-hover-effects/assets/banner-772\303\227250.png"
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_egw |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Image Hover Effects Widgets: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲215 | 14.81 ▲0.44 | 1.87 ▼0.46 | 44.77 ▼1.84 |
Dashboard /wp-admin | 2,354 ▲163 | 6.50 ▲1.65 | 125.85 ▲8.67 | 39.51 ▼3.85 |
Posts /wp-admin/edit.php | 2,260 ▲171 | 3.40 ▲1.38 | 54.44 ▲18.91 | 35.67 ▲3.22 |
Add New Post /wp-admin/post-new.php | 1,525 ▼8 | 17.64 ▼5.56 | 627.49 ▼62.08 | 31.52 ▼26.83 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.27 ▼0.03 | 90.68 ▼14.31 | 45.04 ▲2.69 |
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 did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_egw
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/egw-widgets-hover-effects/includes/egw-template.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/egw-widgets-hover-effects/includes/egw-template.php on line 29
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/egw-widgets-hover-effects/includes/egw-template.php on line 83
- > PHP Notice
Undefined variable: instance in wp-content/plugins/egw-widgets-hover-effects/includes/egw-template.php on line 29
- > PHP Notice
Undefined variable: div_id in wp-content/plugins/egw-widgets-hover-effects/includes/back-end.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/egw-widgets-hover-effects/egwHoverEffects.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/egw-widgets-hover-effects/includes/back-end.php:7
- > PHP Notice
Undefined variable: instance in wp-content/plugins/egw-widgets-hover-effects/includes/egw-template.php on line 83
- > PHP Notice
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 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Screenshot #1 (Widgets admin screen) image required
- Tags: Please reduce the number of tags, currently 43 tag instead of maximum 10
egw-widgets-hover-effects/egwHoverEffects.php 92% from 13 tests
The primary PHP file in "Image Hover Effects Widgets" version 2.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("egw-widgets-hover-effects.php" instead of "egwHoverEffects.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
Good job! No executable or dangerous file extensions detected2,077 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 17 | 63 | 863 |
JavaScript | 2 | 43 | 66 | 604 |
PHP | 3 | 49 | 102 | 525 |
PO File | 1 | 6 | 34 | 74 |
SVG | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 64.71% |
▷ Protected methods | 6 | 35.29% |
▷ Private methods | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772×250.png | 138.54KB | 48.61KB | ▼ 64.92% |
screenshot-1.png | 27.28KB | 12.30KB | ▼ 54.89% |