Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.29ms] Passed 4 tests
A check of server-side resources used by Gift Wrapper for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.11 ▼7.03 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.22 ▼2.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.13 ▼6.02 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.05 ▼9.82 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.86 ▼1.64 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Gift Wrapper for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲42 | 14.30 ▲0.03 | 1.81 ▲0.17 | 36.88 ▼9.09 |
Dashboard /wp-admin | 2,195 ▲15 | 5.64 ▲0.04 | 96.42 ▲2.78 | 39.82 ▲0.01 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▲0.01 | 40.48 ▲1.08 | 37.89 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.95 ▼0.78 | 632.58 ▲5.67 | 52.33 ▲1.88 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▼0.03 | 95.62 ▼0.84 | 41.19 ▼2.68 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
woocommerce-gift-wrapper/woocommerce-gift-wrapper.php 92% from 13 tests
"Gift Wrapper for WooCommerce" version 6.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("6.0" instead of "5.6")
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
Success! There were no dangerous files found in this plugin3,625 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 584 | 884 | 2,219 |
PO File | 2 | 422 | 1,354 | 630 |
CSS | 8 | 97 | 27 | 611 |
JavaScript | 8 | 6 | 9 | 165 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 21.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 93 | |
▷ Static methods | 5 | 5.38% |
▷ Public methods | 83 | 89.25% |
▷ Protected methods | 4 | 4.30% |
▷ Private methods | 6 | 6.45% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin