Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.86ms] Passed 4 tests
A check of server-side resources used by Offermative - Automated discount, related products recommendations, upsells for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.72 ▼7.29 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.04 ▼7.50 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 44.89 ▲0.07 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 84.49 ▼6.60 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 33.89 ▼2.06 |
Server storage [IO: ▲1.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 105 new files
Database: 5 new tables, 7 new options
New tables |
---|
wp_om_campaigns |
wp_om_tracking_orders |
wp_om_exclude_products_temp |
wp_om_tracking_general |
wp_om_fbt_temp |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
sa_om_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by Offermative - Automated discount, related products recommendations, upsells for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲57 | 13.19 ▼1.42 | 1.76 ▼0.49 | 43.56 ▼3.30 |
Dashboard /wp-admin | 2,217 ▲26 | 5.83 ▲0.95 | 95.46 ▼19.56 | 44.66 ▼3.13 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.04 ▼0.01 | 35.29 ▼0.62 | 35.06 ▲2.08 |
Add New Post /wp-admin/post-new.php | 1,376 ▼157 | 20.95 ▼2.29 | 583.43 ▼79.63 | 50.42 ▼10.91 |
Media Library /wp-admin/upload.php | 1,402 ▲17 | 4.22 ▲0.04 | 96.16 ▼6.20 | 44.18 ▲0.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 5 tables in the database
- wp_om_tracking_general
- wp_om_fbt_temp
- wp_om_exclude_products_temp
- wp_om_tracking_orders
- wp_om_campaigns
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- sa_om_db_version
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: upsells, salesfunnels, woocommerce, marketingautomation, relatedproducts...
offermative-discount-pricing-related-products-upsell-funnels-for-woocommerce/offermative.php 62% from 13 tests
The primary PHP file in "Offermative - Automated discount, related products recommendations, upsells for WooCommerce" version 5.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
- Plugin Name: Keep the plugin name shorter than 70 characters (currently 79 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("4.9.0" instead of "5.0.0")
- Main file name: Name the main plugin file the same as the plugin slug ("offermative-discount-pricing-related-products-upsell-funnels-for-woocommerce.php" instead of "offermative.php")
- Requires PHP: Periods and digits should be used for the required version number (ex. "7.0" instead of "5.6+")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin5,367 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 887 | 1,079 | 4,750 |
JavaScript | 8 | 48 | 30 | 443 |
CSS | 5 | 0 | 0 | 121 |
SVG | 53 | 0 | 0 | 53 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 82.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 248.00 |
Average method complexity | 5.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 128 | |
▷ Static methods | 27 | 21.09% |
▷ Public methods | 119 | 92.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 7.03% |
Functions | 23 | |
▷ Named functions | 11 | 47.83% |
▷ Anonymous functions | 12 | 52.17% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/admin/zebra-datepicker/icons.png | 0.48KB | 0.50KB | 0.00% |