Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.10ms] Passed 4 tests
Analyzing server-side resources used by WPC Free Gift Coupons for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 44.91 ▲3.79 |
Dashboard /wp-admin | 3.37 ▲0.07 | 49.32 ▼1.02 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.81 ▼8.02 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.34 ▼10.73 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.86 ▼0.63 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 3.26 | 27.83 |
About /wp-admin/admin.php?page=wpclever | 3.26 | 33.49 |
Server storage [IO: ▲0.07MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WPC Free Gift Coupons for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲105 | 14.34 ▼0.19 | 1.60 ▼0.05 | 42.54 ▼1.90 |
Dashboard /wp-admin | 2,260 ▲80 | 5.66 ▲0.03 | 92.37 ▲3.08 | 75.70 ▲29.60 |
Posts /wp-admin/edit.php | 2,178 ▲75 | 1.98 ▲0.04 | 40.84 ▲4.55 | 36.58 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,600 ▲74 | 22.93 ▲0.01 | 710.27 ▲57.93 | 55.44 ▲8.19 |
Media Library /wp-admin/upload.php | 1,480 ▲80 | 4.26 ▲0.09 | 101.89 ▼9.31 | 81.59 ▲36.37 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,744 | 2.12 | 38.48 | 56.12 |
About /wp-admin/admin.php?page=wpclever | 1,378 | 2.24 | 33.14 | 37.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× 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/wpc-free-gift-coupons/includes/class-backend.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpc-free-gift-coupons/wpc-free-gift-coupons.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpc-free-gift-coupons/includes/class-frontend.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpc-free-gift-coupons/includes/class-helper.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in wpc-free-gift-coupons/assets to your readme.txt
wpc-free-gift-coupons/wpc-free-gift-coupons.php Passed 13 tests
The main PHP script in "WPC Free Gift Coupons for WooCommerce" version 1.0.6 is automatically included on every request by WordPress
122 characters long description:
WPC Free Gift Coupons for WooCommerce offers a new way to give away free gifts to customers during special sale occasions.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,471 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 175 | 87 | 954 |
CSS | 2 | 75 | 6 | 402 |
JavaScript | 3 | 12 | 2 | 86 |
SVG | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 20.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 56 | |
▷ Static methods | 6 | 10.71% |
▷ Public methods | 55 | 98.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.79% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin