Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.61MB] [CPU: ▲2.87ms] Passed 4 tests
Server-side resources used by All in All Image Hover Effect
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 47.67 ▲1.49 |
Dashboard /wp-admin | 3.93 ▲0.63 | 65.60 ▲12.77 |
Posts /wp-admin/edit.php | 3.97 ▲0.62 | 59.73 ▲5.25 |
Add New Post /wp-admin/post-new.php | 6.50 ▲0.62 | 106.21 ▼4.39 |
Media Library /wp-admin/upload.php | 3.82 ▲0.60 | 47.02 ▲9.14 |
Add New Image Hover /wp-admin/post-new.php?post_type=aaihe_images_hovers | 3.90 | 60.27 |
All Image Hover /wp-admin/edit.php?post_type=aaihe_images_hovers | 3.90 | 53.89 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=aaihe_images_hovers | 3.84 | 53.96 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=aaihe_images_hovers | 3.85 | 45.96 |
Server storage [IO: ▲3.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 115 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
category_children |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for All in All Image Hover Effect
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,146 ▲385 | 16.07 ▲1.85 | 14.94 ▲13.08 | 50.16 ▲6.87 |
Dashboard /wp-admin | 2,419 ▲242 | 6.77 ▲1.07 | 128.70 ▲38.61 | 43.53 ▲3.98 |
Posts /wp-admin/edit.php | 2,347 ▲244 | 3.89 ▲1.90 | 59.37 ▲19.51 | 32.96 ▼9.92 |
Add New Post /wp-admin/post-new.php | 1,598 ▲72 | 21.91 ▼1.14 | 700.83 ▲4.86 | 36.84 ▼17.94 |
Media Library /wp-admin/upload.php | 1,481 ▲81 | 4.77 ▲0.49 | 88.00 ▼18.95 | 47.53 ▲3.73 |
Add New Image Hover /wp-admin/post-new.php?post_type=aaihe_images_hovers | 3,055 | 4.50 | 123.45 | 46.84 |
All Image Hover /wp-admin/edit.php?post_type=aaihe_images_hovers | 1,366 | 3.83 | 49.46 | 27.41 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=aaihe_images_hovers | 1,702 | 3.66 | 49.87 | 30.96 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=aaihe_images_hovers | 1,569 | 3.73 | 48.29 | 32.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- category_children
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=aaihe_images_hovers
- > Notice in wp-content/plugins/all-in-all-image-hover-effect/cu-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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-in-all-image-hover-effect/cu_image_effect.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
all-in-all-image-hover-effect/cu_image_effect.php 85% from 13 tests
The entry point to "All in All Image Hover Effect" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("all-in-all-image-hover-effect.php" instead of "cu_image_effect.php")
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
There were no executable files found in this plugin42,095 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 17,050 |
CSS | 17 | 597 | 359 | 9,564 |
PHP | 48 | 1,523 | 1,205 | 5,192 |
JavaScript | 13 | 1,097 | 852 | 4,647 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 6 | 341 | 0 | 2,089 |
PO File | 7 | 306 | 334 | 705 |
Markdown | 2 | 24 | 0 | 177 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 13.91 |
▷ 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 | 99 | |
▷ Static methods | 5 | 5.05% |
▷ Public methods | 99 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 48 | |
▷ Named functions | 48 | 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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cu-framework/assets/images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
cu-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
cu-framework/assets/images/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |