Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.01ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Checkout Terms Popup
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.30 ▼1.46 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.26 ▼2.94 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.45 ▼2.54 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.47 ▼13.08 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.36 ▲1.77 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Checkout Terms Popup
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 14.74 ▲0.06 | 1.86 ▲0.13 | 44.57 ▼3.10 |
Dashboard /wp-admin | 2,224 ▲39 | 5.91 ▲0.10 | 96.06 ▼2.18 | 44.10 ▲2.15 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.03 ▲0.02 | 42.22 ▼5.10 | 38.98 ▲3.40 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.09 ▼0.24 | 652.46 ▲54.86 | 50.07 ▼5.06 |
Media Library /wp-admin/upload.php | 1,406 ▲15 | 4.18 ▼0.02 | 97.25 ▼0.10 | 43.82 ▼1.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 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
7 plugin tags: popup, modal, terms conditions, conditions, woocommerce...
wc-checkout-terms-popup/wc-checkout-terms-popup.php Passed 13 tests
"WooCommerce Checkout Terms Popup" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
101 characters long description:
WooCommerce extension to allow your Terms page to open in a popup window during the checkout process.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin306 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 46 | 131 | 168 |
Sass | 1 | 14 | 0 | 71 |
JavaScript | 4 | 10 | 7 | 66 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 8 | 57.14% |
▷ Public methods | 12 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin