Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/woo-domain-coupon/Domain.php+30
Use of undefined constant GIFT_BASEPATH - assumed 'GIFT_BASEPATH' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼49.90ms] Passed 4 tests
Analyzing server-side resources used by Woocommerce Domain Coupon
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 9.40 ▼33.10 |
Dashboard /wp-admin | 2.05 ▼1.26 | 7.35 ▼43.36 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.37 ▼38.24 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.76 ▼84.90 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.80 ▼28.48 |
Server storage [IO: ▲0.01MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Woocommerce Domain Coupon: 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 / | 2,820 ▲59 | 14.72 ▲0.51 | 1.84 ▲0.18 | 42.25 ▼1.10 |
Dashboard /wp-admin | 2,205 ▲28 | 5.64 ▲0.01 | 85.85 ▼11.41 | 39.44 ▼5.92 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.96 ▼0.03 | 35.48 ▼1.45 | 34.59 ▲1.55 |
Add New Post /wp-admin/post-new.php | 1,435 ▼91 | 16.26 ▼6.80 | 571.44 ▼123.55 | 30.38 ▼33.05 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.18 ▼0.00 | 106.21 ▲6.80 | 40.52 ▼6.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/woo-domain-coupon/Domain.php+30
Use of undefined constant GIFT_BASEPATH - assumed 'GIFT_BASEPATH' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/woo-domain-coupon/woocommerce-domain-coupon.php:18
- > 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 90% from 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
7 plugin tags: coupon, promotions, offers, wocommerce, ecommerce...
woo-domain-coupon/woocommerce-domain-coupon.php 77% from 13 tests
The main PHP script in "Woocommerce Domain Coupon" version 1.0.0 is automatically included on every request by WordPress
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
- Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "2.6")
- Main file name: Name the main plugin file the same as the plugin slug ("woo-domain-coupon.php" instead of "woocommerce-domain-coupon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected117 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 11 | 26 | 117 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin