Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.63MB] [CPU: ▲1.93ms] Passed 4 tests
This is a short check of server-side resources used by Coreem - Coupon Reminder for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.68 | 47.13 ▲8.63 |
Dashboard /wp-admin | 3.98 ▲0.63 | 56.60 ▼9.69 |
Posts /wp-admin/edit.php | 4.03 ▲0.67 | 57.97 ▲12.09 |
Add New Post /wp-admin/post-new.php | 6.50 ▲0.61 | 94.75 ▼3.31 |
Media Library /wp-admin/upload.php | 3.84 ▲0.61 | 45.86 ▲12.34 |
Email Templates /wp-admin/edit.php?post_type=viwcr_email_template | 3.96 | 42.56 |
Scheduled email /wp-admin/edit.php?post_type=viwcr_email_template&page=viwcr_scheduled_email | 3.85 | 39.40 |
Statistics email /wp-admin/edit.php?post_type=viwcr_email_template&page=viwcr_statistics_email | 3.84 | 40.57 |
Server storage [IO: ▲1.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_viwcr_statistics |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Coreem - Coupon Reminder for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲220 | 13.53 ▼0.76 | 5.50 ▲3.79 | 42.00 ▼1.78 |
Dashboard /wp-admin | 2,279 ▲76 | 4.86 ▼0.02 | 113.93 ▼5.48 | 49.56 ▲3.74 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.13 ▲0.09 | 37.69 ▲0.77 | 34.34 ▼2.28 |
Add New Post /wp-admin/post-new.php | 1,572 ▲37 | 17.40 ▼5.98 | 683.28 ▼14.57 | 51.48 ▼5.25 |
Media Library /wp-admin/upload.php | 1,461 ▲61 | 4.23 ▼0.05 | 111.65 ▲5.97 | 51.81 ▲3.49 |
Email Templates /wp-admin/edit.php?post_type=viwcr_email_template | 1,320 | 2.45 | 37.26 | 30.54 |
Scheduled email /wp-admin/edit.php?post_type=viwcr_email_template&page=viwcr_scheduled_email | 1,099 | 2.12 | 28.97 | 43.88 |
Statistics email /wp-admin/edit.php?post_type=viwcr_email_template&page=viwcr_statistics_email | 1,178 | 2.13 | 28.85 | 32.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_viwcr_statistics
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woo-coupon-reminder/admin/partials/woo-coupon-reminder-admin-display.php
- > /wp-content/plugins/woo-coupon-reminder/public/partials/woo-coupon-reminder-public-display.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-coupon-reminder/admin/partials/woo-coupon-reminder-statistics.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/woo-coupon-reminder/admin/partials/display-detail-email-template-page.php:10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-coupon-reminder/admin/partials/woo-coupon-reminder-statistics.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/woo-coupon-reminder/admin/partials/woo-coupon-reminder-statistics.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/woo-coupon-reminder/admin/partials/woo-coupon-reminder-schedule.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-coupon-reminder/admin/partials/woo-coupon-reminder-schedule.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-coupon-reminder/admin/partials/woo-coupon-reminder-schedule.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in woo-coupon-reminder/assets to your readme.txt
woo-coupon-reminder/woo-coupon-reminder.php 92% from 13 tests
"Coreem - Coupon Reminder for WooCommerce" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 plugin5,814 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 503 | 839 | 2,878 |
SVG | 1 | 0 | 4 | 1,514 |
JavaScript | 6 | 78 | 53 | 917 |
CSS | 17 | 48 | 105 | 309 |
PO File | 1 | 82 | 96 | 196 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 37.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 222.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 11 | 9.91% |
▷ Public methods | 102 | 91.89% |
▷ Protected methods | 2 | 1.80% |
▷ Private methods | 7 | 6.31% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
PNG images were not found in this plugin