Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.23ms] Passed 4 tests
Server-side resources used by WooCommerce Checkout Terms Conditions Popup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.24 ▼21.80 |
Dashboard /wp-admin | 3.32 ▼0.02 | 44.68 ▼15.90 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.47 ▲4.67 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 103.34 ▲9.28 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.22 ▲4.11 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Checkout Terms Conditions Popup
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 13.24 ▼1.13 | 1.63 ▼0.52 | 41.55 ▼3.85 |
Dashboard /wp-admin | 2,219 ▲28 | 5.79 ▼0.09 | 100.80 ▼2.79 | 41.28 ▼0.68 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 1.99 ▲0.02 | 40.09 ▼2.33 | 38.53 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 23.07 ▲4.84 | 641.82 ▲35.78 | 52.45 ▲0.33 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.23 ▼0.09 | 93.55 ▼4.90 | 42.18 ▼2.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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
Even though everything seems fine, this is not 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 items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/woocommerce-checkout-terms-conditions-popup/checkout_terms_conditions_popup.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: woocommerce terms, woocommerce, terms and conditions popup, woocommerce conditions, woocommerce checkout terms and conditions popup...
woocommerce-checkout-terms-conditions-popup/checkout_terms_conditions_popup.php 85% from 13 tests
The main PHP file in "WooCommerce Checkout Terms Conditions Popup" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-checkout-terms-conditions-popup.php" instead of "checkout_terms_conditions_popup.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 283 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected10,403 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,797 | 1,731 | 7,035 |
CSS | 3 | 362 | 215 | 2,187 |
PHP | 11 | 300 | 187 | 1,181 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 30.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 165.00 |
Average method complexity | 6.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 4 | 9.30% |
▷ Public methods | 43 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/images/question_mark.png | 0.86KB | 0.00KB | ▼ 100.00% |
assets/images/dualcube.png | 3.29KB | 0.65KB | ▼ 80.17% |
assets/images/dclogo.png | 3.46KB | 0.84KB | ▼ 75.80% |
assets/images/dclogo-2x.png | 4.35KB | 1.74KB | ▼ 60.10% |
assets/images/placeholder.png | 2.75KB | 2.92KB | 0.00% |