Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.02ms] Passed 4 tests
An overview of server-side resources used by Brand Coupons for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 40.90 ▼3.90 |
Dashboard /wp-admin | 3.41 ▲0.11 | 49.45 ▼5.19 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 52.05 ▲2.94 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 98.50 ▼1.92 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 41.65 ▲5.20 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Brand Coupons for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲175 | 14.53 ▲0.18 | 4.98 ▲3.44 | 38.83 ▼2.23 |
Dashboard /wp-admin | 2,234 ▲57 | 5.62 ▲0.05 | 84.71 ▼5.72 | 41.98 ▼4.78 |
Posts /wp-admin/edit.php | 2,153 ▲50 | 2.09 ▲0.12 | 41.01 ▲4.17 | 36.98 ▲1.54 |
Add New Post /wp-admin/post-new.php | 1,575 ▲47 | 18.37 ▼4.76 | 650.78 ▼40.33 | 73.55 ▲19.66 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.28 ▲0.05 | 104.89 ▼2.36 | 52.72 ▲7.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/brand-coupons-for-woocommerce/public/partials/woocommerce-brand-coupons-public-display.php
- > /wp-content/plugins/brand-coupons-for-woocommerce/admin/partials/woocommerce-brand-coupons-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: woocommerce brands, coupons, product brands, coupon codes, coupon banner...
brand-coupons-for-woocommerce/brand-coupons-for-woocommerce.php 92% from 13 tests
The main PHP script in "Brand Coupons for WooCommerce" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected673 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 258 | 548 | 489 |
PO File | 2 | 40 | 44 | 100 |
CSS | 2 | 13 | 11 | 66 |
SVG | 1 | 0 | 0 | 12 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin