Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼143.29ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Coupon Duplicator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.83 ▲14.25 |
Dashboard /wp-admin | 3.06 ▲0.01 | 44.98 ▼3.23 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 45.73 ▲0.03 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 88.49 ▼564.51 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 32.08 ▼5.44 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WooCommerce Coupon Duplicator: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲52 | 15.84 ▲0.21 | 7.71 ▼5.76 | 44.72 ▼1.08 |
Dashboard /wp-admin | 2,979 ▲45 | 5.95 ▲0.02 | 144.66 ▼8.96 | 107.97 ▼0.60 |
Posts /wp-admin/edit.php | 2,751 ▲12 | 2.72 ▲0.00 | 62.64 ▼5.36 | 85.78 ▼7.35 |
Add New Post /wp-admin/post-new.php | 1,506 ▼109 | 18.58 ▼2.83 | 390.53 ▲96.82 | 107.57 ▲2.95 |
Media Library /wp-admin/upload.php | 1,817 ▲7 | 5.04 ▲0.02 | 163.49 ▲16.73 | 118.28 ▼6.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
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
The following issues need your attention
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'AbstractExecutor' not found in wp-content/plugins/woo-coupon-duplicator/inc/executors/default.php:3
- > PHP Fatal error
Uncaught Error: Class 'AbstractExecutor' not found in wp-content/plugins/woo-coupon-duplicator/inc/executors/mailchimp.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-coupon-duplicator/actions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woo-coupon-duplicator/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woo-coupon-duplicator/woo-coupon-duplicator.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: coupon, woocommerce, duplicate
woo-coupon-duplicator/woo-coupon-duplicator.php Passed 13 tests
The main file in "WooCommerce Coupon Duplicator" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
97 characters long description:
Use pre-existing WooCommerce/Wordpress events to trigger coupon duplication and execute an action
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin297 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 94 | 46 | 297 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 4.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 9 | 64.29% |
▷ Protected methods | 1 | 7.14% |
▷ Private methods | 4 | 28.57% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected