Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.47ms] 75% from 4 tests
An overview of server-side resources used by Clean Coupons for Woocommerce by TheCartPress
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 1,412.08ms on /wp-admin/admin.php?page=thecartpress)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 40.18 ▲1.38 |
Dashboard /wp-admin | 3.41 ▲0.10 | 44.32 ▼2.94 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 43.21 ▼3.97 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 88.21 ▲4.17 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 33.70 ▼0.33 |
TCP Plugins /wp-admin/admin.php?page=thecartpress | 3.41 | 1,412.08 |
Coupon Cleanup /wp-admin/admin.php?page=tcp-clean-coupons | 3.30 | 29.44 |
Server storage [IO: ▲0.02MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Clean Coupons for Woocommerce by TheCartPress: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲57 | 14.19 ▼0.34 | 1.99 ▲0.18 | 44.24 ▲1.28 |
Dashboard /wp-admin | 2,224 ▲47 | 5.68 ▲0.09 | 82.42 ▼5.51 | 81.27 ▲40.49 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.02 ▲0.02 | 36.45 ▼0.24 | 34.70 ▼1.42 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 22.99 ▲0.06 | 686.04 ▲89.85 | 53.58 ▼2.02 |
Media Library /wp-admin/upload.php | 1,429 ▲35 | 4.23 ▼0.01 | 95.32 ▼0.80 | 71.30 ▲28.46 |
TCP Plugins /wp-admin/admin.php?page=thecartpress | 945 | 2.05 | 23.08 | 37.17 |
Coupon Cleanup /wp-admin/admin.php?page=tcp-clean-coupons | 867 | 2.05 | 23.46 | 25.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 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)
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tcp-clean-coupons
- > Network (severe)
wp-content/plugins/tcp-clean-coupons/assets/images/tcp-icon.svg - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tcp-clean-coupons
- > Network (severe)
wp-content/plugins/tcp-clean-coupons/assets/css/menu.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 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
4 plugin tags: tcp, woocommerce, coupon, thecartpress
tcp-clean-coupons/tcp-clean-coupons.php Passed 13 tests
"Clean Coupons for Woocommerce by TheCartPress" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
17 characters long description:
TCP Clean Coupons
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected522 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 71 | 142 | 522 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 11.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 11 | 73.33% |
▷ Anonymous functions | 4 | 26.67% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin