Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.70MB] [CPU: ▲11.84ms] Passed 4 tests
This is a short check of server-side resources used by Coupon Creator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.66 ▲1.20 | 53.44 ▲11.61 |
Dashboard /wp-admin | 5.20 ▲1.90 | 63.88 ▲13.20 |
Posts /wp-admin/edit.php | 5.26 ▲1.90 | 69.26 ▲10.37 |
Add New Post /wp-admin/post-new.php | 7.86 ▲1.98 | 113.44 ▲12.17 |
Media Library /wp-admin/upload.php | 5.05 ▲1.82 | 54.63 ▲20.86 |
Add New /wp-admin/post-new.php?post_type=cctor_coupon | 5.48 | 245.05 |
Coupon Categories /wp-admin/edit-tags.php?taxonomy=cctor_coupon_category&post_type=cctor_coupon | 5.04 | 52.11 |
Options /wp-admin/edit.php?post_type=cctor_coupon&page=coupon-options | 5.65 | 292.46 |
All Coupons /wp-admin/edit.php?post_type=cctor_coupon | 5.10 | 53.97 |
Server storage [IO: ▲3.08MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 266 new files
Database: no new tables, 16 new options
New WordPress options |
---|
db_upgraded |
pngx_permalink_flush |
coupon_update_image_border_meta |
pngx_permalink_change |
cctor_coupon_version |
widget_recent-posts |
theysaidso_admin_options |
wisdom_notification_times |
widget_recent-comments |
coupon_update_templates |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Coupon Creator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲136 | 13.21 ▼1.44 | 1.88 ▼0.01 | 42.79 ▲0.57 |
Dashboard /wp-admin | 2,282 ▲94 | 5.88 ▼0.03 | 101.55 ▼7.30 | 39.69 ▼5.10 |
Posts /wp-admin/edit.php | 2,171 ▲82 | 2.06 ▲0.05 | 40.94 ▲1.38 | 38.82 ▲0.88 |
Add New Post /wp-admin/post-new.php | 6,422 ▲4,908 | 29.51 ▲11.97 | 895.89 ▲233.86 | 36.32 ▼17.22 |
Media Library /wp-admin/upload.php | 1,464 ▲76 | 4.34 ▲0.11 | 119.95 ▲9.84 | 47.99 ▲3.46 |
Add New /wp-admin/post-new.php?post_type=cctor_coupon | 3,841 | 5.28 | 158.65 | 182.20 |
Coupon Categories /wp-admin/edit-tags.php?taxonomy=cctor_coupon_category&post_type=cctor_coupon | 1,341 | 2.30 | 34.01 | 30.61 |
Options /wp-admin/edit.php?post_type=cctor_coupon&page=coupon-options | 3,159 | 5.16 | 105.63 | 139.78 |
All Coupons /wp-admin/edit.php?post_type=cctor_coupon | 1,172 | 2.11 | 37.30 | 31.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 16 options
- db_upgraded
- theysaidso_admin_options
- coupon_update_expiration_type
- cctor_coupon_version
- coupon_update_image_border_meta
- widget_recent-comments
- can_compress_scripts
- coupon_update_version
- coupon_creator_options
- pngx_permalink_flush
- ...
Smoke tests 50% 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 0% 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
The following issues need your attention
- 90× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/coupon-creator/src/Cctor/Expiration.php
- > /wp-content/plugins/coupon-creator/plugin-engine/src/Pngx/Fields.php
- > /wp-content/plugins/coupon-creator/plugin-engine/src/Pngx/Sanitize.php
- > /wp-content/plugins/coupon-creator/src/functions/template-functions/cctor-function-expiration.php
- > /wp-content/plugins/coupon-creator/plugin-engine/src/Pngx/Admin/Field/Hidden.php
- > /wp-content/plugins/coupon-creator/src/functions/template-build/cctor-shortcode-build.php
- > /wp-content/plugins/coupon-creator/src/deprecated/deprecated.php
- > /wp-content/plugins/coupon-creator/src/Cctor/Admin/Field/Help.php
- > /wp-content/plugins/coupon-creator/plugin-engine/src/Pngx/Admin/EDD_License.php
- > /wp-content/plugins/coupon-creator/src/Cctor/Main.php
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Pngx__Blocks__Interface' not found in wp-content/plugins/coupon-creator/plugin-engine/src/Pngx/Blocks/Abstract.php:4
- > PHP Fatal error
Uncaught Error: Class 'tad_DI52_ServiceProvider' not found in wp-content/plugins/coupon-creator/plugin-engine/src/Pngx/Duplicate/Post_Types.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/coupon-creator/src/functions/templates/print-coupon.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/coupon-creator/plugin-engine/src/Pngx/Main.php:67
- > PHP Fatal error
Uncaught Error: Class 'Pngx__Abstract_Plugin_Register' not found in wp-content/plugins/coupon-creator/src/Cctor/Plugin_Register.php:7
- > PHP Fatal error
Uncaught Error: Class 'tad_DI52_Container' not found in wp-content/plugins/coupon-creator/plugin-engine/src/Pngx/Container.php:12
- > PHP Fatal error
Uncaught Error: Class 'tad_DI52_ServiceProvider' not found in wp-content/plugins/coupon-creator/plugin-engine/src/Pngx/Service_Providers/Processes.php:12
- > PHP Fatal error
Uncaught Error: Class 'Pngx__Blocks__Abstract' not found in wp-content/plugins/coupon-creator/src/Cctor/Blocks/Coupon.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Autoload\\AutoloadGenerator' not found in wp-content/plugins/coupon-creator/plugin-engine/vendor/xrstf/composer-php52/lib/xrstf/Composer52/AutoloadGenerator.php:30
- > PHP Fatal error
Uncaught Error: Interface 'tad_DI52_ServiceProviderInterface' not found in wp-content/plugins/coupon-creator/plugin-engine/vendor/lucatume/di52/src/tad/DI52/ServiceProvider.php:7
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: custom post type, coupon, shortcode
coupon-creator/coupon_creator.php 92% from 13 tests
The main file in "Coupon Creator" v. 3.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("coupon-creator.php" instead of "coupon_creator.php")
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
Success! There were no dangerous files found in this plugin28,940 lines of code in 225 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 161 | 4,532 | 9,494 | 14,842 |
JavaScript | 37 | 1,566 | 1,000 | 6,183 |
CSS | 14 | 479 | 240 | 4,092 |
PO File | 6 | 1,014 | 1,189 | 2,524 |
SVG | 5 | 0 | 0 | 991 |
JSON | 2 | 0 | 0 | 308 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 16.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 3 | |
Traits | 2 | |
Classes | 127 | |
▷ Abstract classes | 4 | 3.15% |
▷ Concrete classes | 123 | 96.85% |
▷ Final classes | 0 | 0.00% |
Methods | 832 | |
▷ Static methods | 131 | 15.75% |
▷ Public methods | 729 | 87.62% |
▷ Protected methods | 63 | 7.57% |
▷ Private methods | 40 | 4.81% |
Functions | 91 | |
▷ Named functions | 84 | 92.31% |
▷ Anonymous functions | 7 | 7.69% |
Constants | 21 | |
▷ Global constants | 3 | 14.29% |
▷ Class constants | 18 | 85.71% |
▷ Public constants | 18 | 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
7 PNG files occupy 0.03MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-engine/src/resources/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
plugin-engine/vendor/colorbox/images/border2.png | 0.11KB | 0.16KB | 0.00% |
vendor/colorbox/images/border2.png | 0.11KB | 0.16KB | 0.00% |
plugin-engine/vendor/colorbox/images/border1.png | 0.61KB | 0.82KB | 0.00% |
plugin-engine/src/resources/images/ui-bg_flat_65_2a5a8a_40x100.png | 0.96KB | 0.08KB | ▼ 91.16% |