Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.36MB] [CPU: ▼1.31ms] Passed 4 tests
This is a short check of server-side resources used by Coupon Central
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 49.06 ▲7.29 |
Dashboard /wp-admin | 3.67 ▲0.37 | 45.74 ▼1.22 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 51.43 ▲3.97 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 91.70 ▼5.16 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 34.19 ▼2.81 |
Stores /wp-admin/edit-tags.php?taxonomy=sd_coupon_store&post_type=sd_coupon | 3.52 | 35.49 |
Categories /wp-admin/edit-tags.php?taxonomy=sd_coupon_category&post_type=sd_coupon | 3.53 | 30.61 |
Add New /wp-admin/post-new.php?post_type=sd_coupon | 5.90 | 70.88 |
All Coupons /wp-admin/edit.php?post_type=sd_coupon | 3.68 | 44.50 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 60 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_sdcoupon_widget_random_coupons |
Browser metrics Passed 4 tests
A check of browser resources used by Coupon Central
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲193 | 13.97 ▼0.68 | 6.98 ▲5.24 | 43.02 ▼0.03 |
Dashboard /wp-admin | 2,251 ▲66 | 6.03 ▲0.95 | 98.60 ▼6.46 | 39.27 ▼5.10 |
Posts /wp-admin/edit.php | 2,144 ▲55 | 2.00 ▲0.03 | 40.82 ▲1.93 | 35.54 ▲2.91 |
Add New Post /wp-admin/post-new.php | 1,549 ▲20 | 23.38 ▲5.28 | 600.97 ▼74.10 | 50.48 ▼7.95 |
Media Library /wp-admin/upload.php | 1,436 ▲48 | 4.32 ▼0.05 | 97.14 ▼18.18 | 40.66 ▼9.23 |
Stores /wp-admin/edit-tags.php?taxonomy=sd_coupon_store&post_type=sd_coupon | 1,315 | 2.14 | 27.69 | 34.96 |
Categories /wp-admin/edit-tags.php?taxonomy=sd_coupon_category&post_type=sd_coupon | 1,345 | 2.27 | 31.56 | 25.48 |
Add New /wp-admin/post-new.php?post_type=sd_coupon | 6,371 | 20.30 | 902.19 | 45.26 |
All Coupons /wp-admin/edit.php?post_type=sd_coupon | 1,344 | 3.78 | 65.06 | 30.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_sdcoupon_widget_random_coupons
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=sd_coupon
- > Notice in wp-content/plugins/coupon-central/includes/services/class-sdcoupon-coupon-service.php+59
Trying to access array offset on value of type bool
- > GET request to /wp-admin/post-new.php?post_type=sd_coupon
- > Notice in wp-content/plugins/coupon-central/views/admin/coupon/meta-box/coupon-detail.php+16
Trying to get property 'term_id' of non-object
SRP 50% 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
Almost there! Just fix the following items
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coupon-central/views/admin/store/meta-box/store-logo.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/coupon-central/views/frontend/coupon/coupon-archive.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function sdcc_coupon_image() in wp-content/plugins/coupon-central/views/frontend/coupon/coupon-card.php:3
- > PHP Notice
Undefined variable: logo in wp-content/plugins/coupon-central/views/admin/store/meta-box/store-logo.php on line 3
- > PHP Notice
Undefined variable: mediaBtnData in wp-content/plugins/coupon-central/views/share/add-media-button.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/coupon-central/views/share/add-media-button.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/coupon-central/views/share/add-media-button.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function sdcc_render_media_button() in wp-content/plugins/coupon-central/views/admin/coupon/taxonomy/category/category-icon-field.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function sdcc_render_media_button() in wp-content/plugins/coupon-central/views/admin/coupon/taxonomy/store/store-logo-field.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/coupon-central/includes/widgets/class-sdcoupon-widget-random-coupons.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: coupon, discount, promo
coupon-central/coupon-central.php 92% from 13 tests
Analyzing the main PHP file in "Coupon Central" version 1.0.1
It is important to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin3,810 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 386 | 55 | 1,574 |
PHP | 32 | 305 | 617 | 1,511 |
Sass | 14 | 65 | 0 | 393 |
PO File | 1 | 84 | 99 | 210 |
JavaScript | 4 | 22 | 27 | 122 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 3.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 3 | 3.66% |
▷ Public methods | 82 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-placeholder.png | 0.83KB | 0.82KB | ▼ 1.87% |
src/assets/images/logo-placeholder.png | 2.30KB | 0.82KB | ▼ 64.37% |