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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼3.69ms] Passed 4 tests
Analyzing server-side resources used by Extra Fees Plugin for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.85 ▼0.02 |
Dashboard /wp-admin | 3.31 ▼0.04 | 52.78 ▼10.41 |
Posts /wp-admin/edit.php | 3.37 ▲0.00 | 50.45 ▲2.54 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.00 | 82.24 ▼2.70 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 33.11 ▼1.61 |
Server storage [IO: ▲10.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 291 new files
Database: no new tables, 10 new options
New WordPress options |
---|
wcpfc_version |
can_compress_scripts |
fs_accounts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
fs_active_plugins |
fs_debug_mode |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Extra Fees Plugin for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.25 ▼0.29 | 1.73 ▼0.02 | 45.77 ▲2.72 |
Dashboard /wp-admin | 2,192 ▲15 | 5.52 ▼0.14 | 86.43 ▼11.93 | 37.33 ▼6.62 |
Posts /wp-admin/edit.php | 2,100 ▲21 | 2.01 ▼0.01 | 38.79 ▲3.60 | 36.36 ▲2.76 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.16 ▲4.90 | 657.13 ▼6.05 | 46.99 ▼32.19 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.19 ▼0.03 | 99.20 ▼0.85 | 44.41 ▲3.28 |
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
These items require your attention
- The uninstall procedure has failed, leaving 10 options in the database
- widget_theysaidso_widget
- fs_debug_mode
- fs_accounts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- wcpfc_version
- fs_active_plugins
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
- Screenshots: These screenshots require images: #9 (Premium - Charge flexible extra fee), #10 (Premium - Extra fee based on the country), #11 (Premium - Extra fee based on specific user/user role), #12 (Premium - Extra fee based on cart total and product quantity), #13 (Premium - Extra fee based on specific payment methods), #14 (Premium - Extra fee based on specific shipping methods), #15 (Premium - Dashboard for check revenue of fee), #16 (Premium - Import/Export of fee's setting)
woo-conditional-product-fees-for-checkout/woocommerce-conditional-product-fees-for-checkout.php 77% from 13 tests
This is the main PHP file of "Extra Fees Plugin for WooCommerce" version 3.9.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "4.5")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-conditional-product-fees-for-checkout.php" instead of "woocommerce-conditional-product-fees-for-checkout.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin50,486 lines of code in 189 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 141 | 8,937 | 19,055 | 40,447 |
PO File | 4 | 1,968 | 3,855 | 5,326 |
JavaScript | 10 | 376 | 459 | 2,921 |
CSS | 24 | 61 | 79 | 1,033 |
SVG | 9 | 0 | 0 | 702 |
XML | 1 | 0 | 0 | 57 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
- Method cyclomatic complexity should be reduced to less than 100 (currently 208)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 90.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 208.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 2 | 3.28% |
▷ Concrete classes | 59 | 96.72% |
▷ Final classes | 0 | 0.00% |
Methods | 1,422 | |
▷ Static methods | 212 | 14.91% |
▷ Public methods | 1,014 | 71.31% |
▷ Protected methods | 20 | 1.41% |
▷ Private methods | 388 | 27.29% |
Functions | 116 | |
▷ Named functions | 115 | 99.14% |
▷ Anonymous functions | 1 | 0.86% |
Constants | 160 | |
▷ Global constants | 109 | 68.12% |
▷ Class constants | 51 | 31.87% |
▷ Public constants | 51 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
27 PNG files occupy 3.13MB with 1.85MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/Getting_Started_02.png | 154.32KB | 45.38KB | ▼ 70.59% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
admin/images/Getting_Started_03.png | 147.31KB | 38.03KB | ▼ 74.18% |
admin/images/list-arrow-icon.png | 3.56KB | 2.01KB | ▼ 43.62% |
admin/images/pro-features-img/feature-box-one-img.png | 347.91KB | 123.49KB | ▼ 64.50% |