Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.45ms] Passed 4 tests
An overview of server-side resources used by = LH Agree to Terms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 46.44 ▲3.57 |
Dashboard /wp-admin | 3.38 ▲0.08 | 49.09 ▼7.09 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 54.13 ▲3.44 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.07 | 95.87 ▼9.40 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 41.07 ▲3.26 |
Agree to terms /wp-admin/options-general.php?page=lh-agree-to-terms/lh-agree-to-terms.php | 3.29 | 33.49 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
= LH Agree to Terms: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▲0.06 | 1.74 ▼0.06 | 44.51 ▲3.90 |
Dashboard /wp-admin | 2,199 ▲22 | 5.58 ▼0.08 | 91.47 ▲2.46 | 42.30 ▼1.38 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▲0.02 | 40.87 ▼3.91 | 32.70 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.53 ▲5.32 | 701.01 ▲52.33 | 58.16 ▼17.39 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.13 ▼0.06 | 95.17 ▼10.37 | 41.43 ▼7.68 |
Agree to terms /wp-admin/options-general.php?page=lh-agree-to-terms/lh-agree-to-terms.php | 841 | 2.03 | 24.30 | 28.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lh-agree-to-terms/lh-agree-to-terms.php
- > Notice in wp-content/plugins/lh-agree-to-terms/partials/option-settings.php+62
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/lh-agree-to-terms/partials/option-settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lh-agree-to-terms/lh-agree-to-terms.php:469
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: terms, conditions, require, agree, privacy
lh-agree-to-terms/lh-agree-to-terms.php 92% from 13 tests
The primary PHP file in "= LH Agree to Terms" version 1.25 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
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 detected294 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 274 | 41 | 283 |
JavaScript | 1 | 9 | 0 | 11 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 68.00 |
▷ Minimum class complexity | 68.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 13 | 76.47% |
▷ Protected methods | 1 | 5.88% |
▷ Private methods | 3 | 17.65% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected