Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼291.58ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Next Order Coupon
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.28 | 54.02 ▲7.37 |
Dashboard /wp-admin | 3.66 ▲0.26 | 34.69 ▲1.34 |
Posts /wp-admin/edit.php | 3.97 ▲0.33 | 40.36 ▲4.26 |
Add New Post /wp-admin/post-new.php | 7.21 ▲0.24 | 92.90 ▼1,174.03 |
Media Library /wp-admin/upload.php | 3.61 ▲0.32 | 27.01 ▲2.11 |
Freemius Debug [v.1.2.1.5] /wp-admin/admin.php?page=freemius | 3.75 | 24.16 |
Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 126 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_accounts |
fs_debug_mode |
fs_api_cache |
fs_active_plugins |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Next Order Coupon
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,857 ▲112 | 16.03 ▲0.29 | 5.82 ▼1.29 | 3.05 ▲0.28 |
Dashboard /wp-admin | 2,958 ▲100 | 6.12 ▼0.08 | 116.75 ▼19.68 | 170.92 ▲8.89 |
Posts /wp-admin/edit.php | 2,754 ▲60 | 3.24 ▲0.01 | 63.69 ▲0.30 | 154.17 ▲12.91 |
Add New Post /wp-admin/post-new.php | 1,821 ▲102 | 17.11 ▼4.79 | 397.92 ▼27.12 | 159.66 ▼2.48 |
Media Library /wp-admin/upload.php | 1,761 ▲63 | 5.54 ▲0.04 | 148.75 ▲1.02 | 207.38 ▲9.88 |
Freemius Debug [v.1.2.1.5] /wp-admin/admin.php?page=freemius | 1,409 | 2.50 | 56.39 | 128.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/next-order-coupon-woocommerce/freemius/includes/class-freemius.php+4348
First parameter must either be an object or the name of an existing class
- The uninstall procedure has failed, leaving 4 options in the database
- fs_api_cache
- fs_active_plugins
- fs_debug_mode
- fs_accounts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% 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:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== next-order-coupon-woocommerce ===
)
next-order-coupon-woocommerce/woocommerce-next-order-coupon.php 77% from 13 tests
The main PHP file in "WooCommerce Next Order Coupon" ver. 0.4.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "3.0.0")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Name the main plugin file the same as the plugin slug ("next-order-coupon-woocommerce.php" instead of "woocommerce-next-order-coupon.php")
Code Analysis 97% from 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 plugin20,268 lines of code in 114 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 75 | 3,350 | 8,056 | 14,398 |
PO File | 5 | 1,438 | 1,460 | 3,710 |
Sass | 15 | 267 | 82 | 1,636 |
JavaScript | 4 | 37 | 63 | 229 |
Markdown | 2 | 68 | 0 | 214 |
JSON | 2 | 0 | 0 | 42 |
YAML | 2 | 2 | 0 | 28 |
CSS | 9 | 0 | 0 | 11 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,019)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 42.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,019.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 2 | 5.41% |
▷ Concrete classes | 35 | 94.59% |
▷ Final classes | 0 | 0.00% |
Methods | 669 | |
▷ Static methods | 104 | 15.55% |
▷ Public methods | 497 | 74.29% |
▷ Protected methods | 14 | 2.09% |
▷ Private methods | 158 | 23.62% |
Functions | 53 | |
▷ Named functions | 53 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 93 | |
▷ Global constants | 76 | 81.72% |
▷ Class constants | 17 | 18.28% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |