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 gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.98ms] Passed 4 tests
Analyzing server-side resources used by Woocommerce Product Hover Popup Image
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.06 | 44.62 ▲0.18 |
Dashboard /wp-admin | 3.40 ▲0.01 | 50.44 ▼18.38 |
Posts /wp-admin/edit.php | 3.51 ▲0.11 | 51.73 ▲4.95 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.07 | 87.78 ▼23.87 |
Media Library /wp-admin/upload.php | 3.32 ▲0.05 | 37.50 ▲2.14 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Woocommerce Product Hover Popup Image
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲161 | 13.50 ▼0.85 | 9.02 ▲7.41 | 42.73 ▼1.80 |
Dashboard /wp-admin | 2,205 ▲25 | 5.61 ▼0.00 | 84.56 ▼5.14 | 42.19 ▲1.76 |
Posts /wp-admin/edit.php | 2,111 ▲8 | 1.98 ▼0.01 | 34.36 ▼3.40 | 36.03 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 22.96 ▼0.02 | 678.88 ▼64.81 | 60.07 ▲4.48 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.18 ▼0.03 | 100.20 ▼0.00 | 43.88 ▼0.92 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woo-product-hover-popup-image/admin/partials/hover-popup-admin-display.php
- > /wp-content/plugins/woo-product-hover-popup-image/public/partials/hover-popup-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2 in woo-product-hover-popup-image/assets to your readme.txt
- Donate link: Please fix this invalid URI: "dangngocbinh.com"
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== woo-product-hover-popup-image ===
)
woo-product-hover-popup-image/hover-popup.php 85% from 13 tests
The principal PHP file in "Woocommerce Product Hover Popup Image" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-product-hover-popup-image.php" instead of "hover-popup.php")
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin225 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 122 | 530 | 184 |
JavaScript | 2 | 11 | 27 | 33 |
CSS | 2 | 0 | 8 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin