Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/ats-privacy-policy/includes/privats/privats.php+7
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.57ms] Passed 4 tests
Server-side resources used by ats privacy policy
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 6.11 ▼32.15 |
Dashboard /wp-admin | 2.05 ▼1.26 | 12.51 ▼35.67 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.92 ▼37.62 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.90 ▼100.84 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.48 ▼27.67 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for ats privacy policy
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 14.46 ▲0.07 | 2.11 ▲0.24 | 37.88 ▼11.73 |
Dashboard /wp-admin | 2,215 ▲24 | 4.85 ▼0.20 | 108.44 ▼2.59 | 45.03 ▲2.01 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.03 ▲0.00 | 40.27 ▲2.09 | 35.18 ▼2.15 |
Add New Post /wp-admin/post-new.php | 1,542 ▲7 | 18.26 ▼4.81 | 613.91 ▼8.31 | 55.08 ▼0.58 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.22 ▲0.02 | 93.39 ▼11.32 | 39.02 ▼7.99 |
ATs Privacy Policy /wp-admin/policy-ats.php | 26 | 0.44 | 0.08 | 13.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/ats-privacy-policy/includes/privats/privats.php+7
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ats-privacy-policy/template/blocs.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ats-privacy-policy/ats-privacy-policy.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ats-privacy-policy/includes/privats/privats.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ats-privacy-policy/settings.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/policy-ats.php
- > Network (severe)
wp-admin/policy-ats.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Plugin settings on standart WordPress
Settings > Discussion
page.), #2 () - Plugin Name: You should set the name of your plugin on the first line (
=== ats-privacy-policy ===
)
ats-privacy-policy/ats-privacy-policy.php 85% from 13 tests
This is the main PHP file of "ats privacy policy" version 7.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 683 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 detected455 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 71 | 168 | 442 |
CSS | 2 | 22 | 1 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 36 | |
▷ Named functions | 36 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ats-privacy-policy.png | 11.25KB | 11.28KB | 0.00% |