Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.50ms] Passed 4 tests
A check of server-side resources used by YITH WooCommerce Popup
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.38 ▼8.93 |
Dashboard /wp-admin | 3.33 ▼0.01 | 47.33 ▼22.70 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.06 ▲1.87 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 94.04 ▲1.58 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.27 ▼3.93 |
Server storage [IO: ▲4.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 360 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
yit_recently_activated |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by YITH WooCommerce Popup
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.67 ▲0.33 | 1.57 ▼0.20 | 36.60 ▼5.29 |
Dashboard /wp-admin | 2,201 ▲24 | 5.56 ▼0.07 | 89.93 ▼8.27 | 41.78 ▲3.34 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.96 ▼0.02 | 41.08 ▼1.36 | 37.79 ▼0.08 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.17 ▼0.16 | 635.17 ▲49.02 | 48.83 ▼11.79 |
Media Library /wp-admin/upload.php | 1,406 ▲12 | 4.23 ▲0.04 | 96.14 ▼0.90 | 42.85 ▲3.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- yit_recently_activated
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/yith-woocommerce-popup/templates/admin/premium.php:149
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/yith-woocommerce-popup/templates/metaboxes/types/iconlist.php on line 17
- > 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 Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: popup, custom popup, woocommerce popup, popups, pop-up
yith-woocommerce-popup/init.php 77% from 13 tests
The main PHP file in "YITH WooCommerce Popup" ver. 1.34.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yith-woocommerce-popup.php" instead of "init.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.2" instead of "8.2")
- Description: Please keep the plugin description shorter than 140 characters (currently 505 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin44,416 lines of code in 289 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 195 | 3,321 | 8,120 | 17,928 |
CSS | 21 | 1,745 | 294 | 9,646 |
JavaScript | 57 | 1,371 | 861 | 9,562 |
PO File | 6 | 1,566 | 1,920 | 4,307 |
SVG | 8 | 0 | 1 | 2,926 |
XML | 2 | 12 | 9 | 47 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 10.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 133 | |
▷ Abstract classes | 1 | 0.75% |
▷ Concrete classes | 132 | 99.25% |
▷ Final classes | 0 | 0.00% |
Methods | 537 | |
▷ Static methods | 54 | 10.06% |
▷ Public methods | 463 | 86.22% |
▷ Protected methods | 52 | 9.68% |
▷ Private methods | 22 | 4.10% |
Functions | 149 | |
▷ Named functions | 141 | 94.63% |
▷ Anonymous functions | 8 | 5.37% |
Constants | 20 | |
▷ Global constants | 19 | 95.00% |
▷ Class constants | 1 | 5.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
50 PNG files occupy 0.58MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-fw/assets/images/sidebar-right.png | 0.95KB | 0.11KB | ▼ 87.91% |
plugin-fw/assets/css/jquery-ui/images/ui-icons_222222_256x240.png | 3.69KB | 4.18KB | 0.00% |
plugin-fw/assets/css/jquery-ui/images/ui-icons_454545_256x240.png | 3.69KB | 4.18KB | 0.00% |
assets/images/01.png | 107.46KB | 38.12KB | ▼ 64.53% |
assets/images/close-buttons/close1.png | 1.44KB | 0.68KB | ▼ 53.02% |