Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.64MB] [CPU: ▲3.72ms] Passed 4 tests
A check of server-side resources used by Terms & Conditions Per Product
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.65 | 42.30 ▼1.06 |
Dashboard /wp-admin | 3.96 ▲0.66 | 54.08 ▲2.45 |
Posts /wp-admin/edit.php | 4.01 ▲0.66 | 57.03 ▲8.30 |
Add New Post /wp-admin/post-new.php | 6.50 ▲0.61 | 98.74 ▲5.20 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 43.08 ▲9.67 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 4.25 | 43.94 |
Server storage [IO: ▲4.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 221 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_tacpp_accept_log |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
fs_active_plugins |
fs_debug_mode |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
fs_accounts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Terms & Conditions Per Product
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲101 | 14.69 ▲0.34 | 1.88 ▲0.13 | 27.58 ▼12.04 |
Dashboard /wp-admin | 2,243 ▲66 | 5.56 ▼0.02 | 98.37 ▲1.38 | 46.52 ▲4.19 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.14 ▲0.18 | 41.50 ▼0.22 | 40.41 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,560 ▲31 | 23.21 ▼0.06 | 665.23 ▲68.91 | 70.52 ▲22.29 |
Media Library /wp-admin/upload.php | 1,445 ▲42 | 4.14 ▼0.03 | 99.63 ▼0.96 | 44.93 ▼1.30 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,079 | 1.68 | 27.64 | 28.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/terms-and-conditions-per-product/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie tables detected upon uninstall: 1 table
- wp_tacpp_accept_log
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-comments
- fs_accounts
- widget_theysaidso_widget
- fs_active_plugins
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- fs_debug_mode
- can_compress_scripts
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 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
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/terms-and-conditions-per-product/templates/admin-tacpp-page.php:10
- > PHP Warning
Use of undefined constant TACPP4_PLUGIN_URL - assumed 'TACPP4_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/terms-and-conditions-per-product/templates/admin-header.php on line 10
- > PHP Warning
Use of undefined constant TACPP4_PLUGIN_PATH - assumed 'TACPP4_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/terms-and-conditions-per-product/templates/admin-tacpp-page.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/terms-and-conditions-per-product/templates/admin-header.php:11
- > PHP Fatal error
require_once(): Failed opening required 'TACPP4_PLUGIN_PATH/templates/admin-header.php' (include_path='.:/usr/share/php') in wp-content/plugins/terms-and-conditions-per-product/templates/admin-settings-page.php on line 5
- > PHP Warning
Use of undefined constant TACPP4_PLUGIN_PATH - assumed 'TACPP4_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/terms-and-conditions-per-product/templates/admin-settings-page.php on line 5
- > PHP Warning
include(TACPP4_PLUGIN_PATH/templates/admin-header.php): failed to open stream: No such file or directory in wp-content/plugins/terms-and-conditions-per-product/templates/admin-tacpp-page.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/terms-and-conditions-per-product/terms-per-product.php:42
- > PHP Warning
require_once(TACPP4_PLUGIN_PATH/templates/admin-header.php): failed to open stream: No such file or directory in wp-content/plugins/terms-and-conditions-per-product/templates/admin-settings-page.php on line 5
- > PHP Warning
include(): Failed opening 'TACPP4_PLUGIN_PATH/templates/admin-header.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/terms-and-conditions-per-product/templates/admin-tacpp-page.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: product, terms and conditions, woocommerce, terms of service, legal
terms-and-conditions-per-product/terms-per-product.php 85% from 13 tests
The principal PHP file in "Terms & Conditions Per Product" v. 1.2.9 is loaded by WordPress automatically on each request
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("5.4" instead of "6.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("terms-and-conditions-per-product.php" instead of "terms-per-product.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected35,883 lines of code in 156 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 131 | 8,624 | 17,902 | 35,138 |
JavaScript | 7 | 73 | 121 | 274 |
CSS | 16 | 47 | 6 | 240 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 1 | 0 | 0 | 17 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 78.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 1,344 | |
▷ Static methods | 218 | 16.22% |
▷ Public methods | 938 | 69.79% |
▷ Protected methods | 17 | 1.26% |
▷ Private methods | 389 | 28.94% |
Functions | 108 | |
▷ Named functions | 107 | 99.07% |
▷ Anonymous functions | 1 | 0.93% |
Constants | 153 | |
▷ Global constants | 105 | 68.63% |
▷ Class constants | 48 | 31.37% |
▷ Public constants | 48 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/tacpp-avatar-100.png | 6.47KB | 3.28KB | ▼ 49.38% |
assets/images/tacpp-avatar-32.png | 1.22KB | 0.94KB | ▼ 22.89% |
assets/icon-128x128.png | 2.82KB | 2.11KB | ▼ 25.23% |
assets/images/tacpp-avatar-64.png | 2.47KB | 1.71KB | ▼ 30.65% |
assets/images/tacpp-avatar-20-bw.png | 0.71KB | 0.61KB | ▼ 13.66% |