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
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.94ms] Passed 4 tests
A check of server-side resources used by Woo Additional Terms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 34.88 ▼5.18 |
Dashboard /wp-admin | 3.40 ▲0.06 | 46.64 ▼13.64 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.99 ▲1.20 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 87.83 ▼14.15 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.52 ▲4.32 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 109 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Woo Additional Terms: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 13.78 ▼0.61 | 1.63 ▼0.13 | 32.80 ▼10.56 |
Dashboard /wp-admin | 2,251 ▲63 | 5.81 ▲0.75 | 97.96 ▼10.65 | 45.33 ▼1.77 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.04 ▲0.07 | 34.07 ▼1.99 | 36.13 ▲4.48 |
Add New Post /wp-admin/post-new.php | 1,549 ▲9 | 23.26 ▼0.14 | 673.19 ▼5.71 | 56.66 ▼4.40 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.25 ▲0.02 | 96.49 ▼3.50 | 50.45 ▲5.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 21× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Woo_Additional_Terms\\Ajax\\Ajax' not found in wp-content/plugins/woo-additional-terms/src/Ajax/Rate.php:19
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/woo-additional-terms/src/Settings/Settings.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Automattic\\WooCommerce\\Blocks\\Integrations\\IntegrationInterface' not found in wp-content/plugins/woo-additional-terms/src/WooCommerce/Block/Block.php:25
- > PHP Fatal error
Uncaught Error: Class 'Woo_Additional_Terms\\Ajax\\Ajax' not found in wp-content/plugins/woo-additional-terms/src/Ajax/OnBoarding.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/woo-additional-terms/src/Vendor/Pimple/Psr11/Container.php:37
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-additional-terms/src/Vendor/Pimple/Tests/ServiceIteratorTest.php:34
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/woo-additional-terms/src/Vendor/Pimple/Psr11/ServiceLocator.php:38
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-additional-terms/src/Vendor/Pimple/Tests/PimpleTest.php:35
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-additional-terms/src/Vendor/Pimple/Tests/PimpleServiceProviderInterfaceTest.php:35
- > PHP Fatal error
Uncaught Error: Interface 'Woo_Additional_Terms\\Vendor\\Pimple\\ServiceProviderInterface' not found in wp-content/plugins/woo-additional-terms/src/Vendor/Pimple/Tests/Fixtures/PimpleServiceProvider.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: terms of service, age verification, gdpr, i agree, terms and conditions...
woo-additional-terms/woo-additioanl-terms.php 77% from 13 tests
Analyzing the main PHP file in "Woo Additional Terms" version 1.6.4
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-additional-terms.php" instead of "woo-additioanl-terms.php")
- Description: The description should be shorter than 140 characters (currently 145 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.9")
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
There were no executable files found in this plugin8,433 lines of code in 100 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 1,244 | 730 | 4,180 |
PHP | 72 | 935 | 2,962 | 3,129 |
CSS | 10 | 172 | 24 | 960 |
JSON | 1 | 0 | 0 | 133 |
SVG | 2 | 0 | 0 | 23 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 7 | 12.73% |
▷ Concrete classes | 48 | 87.27% |
▷ Final classes | 2 | 4.17% |
Methods | 256 | |
▷ Static methods | 30 | 11.72% |
▷ Public methods | 231 | 90.23% |
▷ Protected methods | 6 | 2.34% |
▷ Private methods | 19 | 7.42% |
Functions | 60 | |
▷ Named functions | 2 | 3.33% |
▷ Anonymous functions | 58 | 96.67% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin