Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.76ms] Passed 4 tests
This is a short check of server-side resources used by Global Coupons for Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 36.65 ▼5.64 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.75 ▼5.46 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.76 ▲0.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.77 ▼2.06 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.53 ▼5.89 |
Preview /wp-admin/admin.php?page=global-coupons-admin-submenu-2 | 3.00 | 24.86 |
Reports /wp-admin/admin.php?page=global-coupons-admin-submenu-3 | 3.00 | 21.42 |
Global Coupons /wp-admin/admin.php?page=global-coupons-admin-page | 3.00 | 23.57 |
Coupon Operations /wp-admin/admin.php?page=global-coupons-admin-submenu-1 | 3.00 | 22.27 |
Settings /wp-admin/admin.php?page=global-coupons-admin-submenu-4 | 3.00 | 23.86 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
global_coupons |
theysaidso_admin_options |
global_coupons_menu |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Global Coupons for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 14.48 ▲0.10 | 1.63 ▼0.23 | 40.08 ▼8.70 |
Dashboard /wp-admin | 2,209 ▲21 | 5.85 ▼0.05 | 103.48 ▼9.34 | 38.51 ▼5.34 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.06 ▲0.06 | 38.00 ▲1.31 | 38.73 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 23.22 ▲0.16 | 655.40 ▼31.73 | 54.15 ▼6.01 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.21 ▼0.07 | 98.33 ▼5.00 | 44.58 ▼1.79 |
Preview /wp-admin/admin.php?page=global-coupons-admin-submenu-2 | 28 | 0.44 | 0.10 | 4.19 |
Reports /wp-admin/admin.php?page=global-coupons-admin-submenu-3 | 28 | 0.44 | 0.09 | 3.44 |
Global Coupons /wp-admin/admin.php?page=global-coupons-admin-page | 28 | 0.44 | 0.09 | 3.91 |
Coupon Operations /wp-admin/admin.php?page=global-coupons-admin-submenu-1 | 28 | 0.44 | 0.07 | 3.40 |
Settings /wp-admin/admin.php?page=global-coupons-admin-submenu-4 | 28 | 0.44 | 0.08 | 3.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- global_coupons
- db_upgraded
- global_coupons_menu
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/global-coupons-for-woocommerce/core/global-coupon-admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/global-coupons-for-woocommerce/core/global-coupon-my-account.php:183
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=global-coupons-admin-submenu-2
- > Network (severe)
wp-admin/admin.php?page=global-coupons-admin-submenu-2 - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=global-coupons-admin-submenu-3
- > Network (severe)
wp-admin/admin.php?page=global-coupons-admin-submenu-3 - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=global-coupons-admin-page
- > Network (severe)
wp-admin/admin.php?page=global-coupons-admin-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=global-coupons-admin-submenu-1
- > Network (severe)
wp-admin/admin.php?page=global-coupons-admin-submenu-1 - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=global-coupons-admin-submenu-4
- > Network (severe)
wp-admin/admin.php?page=global-coupons-admin-submenu-4 - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: coupon plugin, dynamic coupons, woocommerce coupon, woocommerce coupons, extended coupons...
global-coupons-for-woocommerce/global-coupons.php 85% from 13 tests
The main PHP file in "Global Coupons for Woocommerce" ver. 1.3.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("3.1" instead of "2.5")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("global-coupons-for-woocommerce.php" instead of "global-coupons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin6,214 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 77 | 0 | 4,781 |
PHP | 7 | 206 | 108 | 1,433 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected