Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method GNA_WooCoupons::activate_handler() should not be called statically
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.27ms] Passed 4 tests
An overview of server-side resources used by GNA WooCommerce Coupons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.17 ▼4.26 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.10 ▼20.29 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.11 ▼1.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.51 ▲8.62 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 30.90 ▼3.30 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GNA WooCommerce Coupons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲63 | 13.21 ▼1.48 | 1.62 ▼1.02 | 38.46 ▼8.58 |
Dashboard /wp-admin | 2,206 ▲18 | 6.04 ▲1.10 | 99.43 ▼15.25 | 42.19 ▼0.27 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.02 | 38.92 ▲3.62 | 36.51 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,528 ▲9 | 23.04 ▼0.22 | 636.76 ▼18.58 | 58.27 ▼7.52 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.23 ▲0.04 | 95.72 ▼3.16 | 41.14 ▼4.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gna-woo-coupons/inc/gna-woo-coupons-config.php:13
- > PHP Fatal error
Uncaught Error: Class 'GNA_WooCoupons_Admin_Menu' not found in wp-content/plugins/gna-woo-coupons/admin/gna-woo-coupons-admin-settings-menu.php:3
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: "none"
gna-woo-coupons/gna-woo-coupons.php Passed 13 tests
Analyzing the main PHP file in "GNA WooCommerce Coupons" version 0.9.2
134 characters long description:
Additional functionality for WooCommerce Coupons: Allow discounts with specific day, weekdays only, weekends only or day of week, etc.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin415 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 78 | 36 | 415 |
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.18 |
Average class complexity | 5.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 5 | 9.62% |
▷ Public methods | 52 | 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 | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/gna_20x20.png | 2.98KB | 0.33KB | ▼ 88.89% |