Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.86ms] Passed 4 tests
This is a short check of server-side resources used by Terms of Service & Privacy Policy Generator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 51.39 ▲9.39 |
Dashboard /wp-admin | 3.64 ▲0.34 | 54.70 ▲4.86 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.48 ▼5.25 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.11 ▼9.49 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.18 ▼1.55 |
TOS Generator /wp-admin/options-general.php?page=wl_tos-wp | 3.21 | 35.25 |
Server storage [IO: ▲0.05MB] [DB: ▲0.04MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Terms of Service & Privacy Policy Generator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲113 | 14.36 ▲0.01 | 1.75 ▼0.37 | 46.04 ▼1.50 |
Dashboard /wp-admin | 2,305 ▲125 | 5.64 ▼0.02 | 94.59 ▲2.54 | 48.29 ▲9.45 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.02 | 35.70 ▼2.79 | 36.56 ▲1.29 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.19 ▲5.11 | 659.08 ▲7.78 | 56.34 ▼7.79 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▲0.07 | 96.04 ▼9.85 | 43.71 ▼4.33 |
TOS Generator /wp-admin/options-general.php?page=wl_tos-wp | 1,095 | 2.00 | 26.07 | 26.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/terms-of-service-and-privacy-policy/wl_tos_pp_generator.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== terms-of-service-and-privacy-policy ===
)
terms-of-service-and-privacy-policy/wl_tos_pp_generator.php 92% from 13 tests
The main PHP file in "Terms of Service & Privacy Policy Generator" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("terms-of-service-and-privacy-policy.php" instead of "wl_tos_pp_generator.php")
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 plugin476 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 70 | 39 | 476 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin