Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.90MB] [CPU: ▼32.88ms] Passed 4 tests
A check of server-side resources used by AdSense Privacy Policy
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.57 ▼1.49 |
Dashboard /wp-admin | 3.04 ▼0.26 | 23.13 ▼26.20 |
Posts /wp-admin/edit.php | 3.04 ▼0.31 | 22.85 ▼25.35 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.84 | 22.57 ▼72.02 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 25.36 ▼7.95 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 17 new options
New WordPress options |
---|
privacy_policy_credit |
privacy_policy_before_paragraph |
widget_recent-comments |
privacy_policy_sitename |
privacy_policy_pp_help |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
privacy_policy_before_heading |
privacy_policy_after_paragraph |
... |
Browser metrics Passed 4 tests
A check of browser resources used by AdSense Privacy Policy
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 14.48 ▲0.10 | 1.95 ▲0.05 | 43.27 ▼0.39 |
Dashboard /wp-admin | 2,210 ▲39 | 5.86 ▼0.04 | 110.20 ▼1.77 | 38.86 ▼7.71 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.01 | 40.32 ▲3.14 | 35.31 ▲2.46 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.33 ▲5.85 | 634.43 ▼42.50 | 43.57 ▼1.12 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.03 | 93.62 ▼10.33 | 40.23 ▼5.19 |
Adsense Privacy Policy /wp-admin/privacy-policy.php | 26 | 0.44 | 0.09 | 14.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 17 options in the database
- privacy_policy_title
- widget_theysaidso_widget
- privacy_policy_after_paragraph
- privacy_policy_browser_help
- widget_recent-comments
- privacy_policy_before_heading
- db_upgraded
- privacy_policy_before_paragraph
- privacy_policy_pp_help
- privacy_policy_slug
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/adsense-privacy-policy/privacy-policy.php:30
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/privacy-policy.php
- > Network (severe)
wp-admin/privacy-policy.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== adsense-privacy-policy ===
)
adsense-privacy-policy/privacy-policy.php 92% from 13 tests
Analyzing the main PHP file in "AdSense Privacy Policy" version 1.1.1
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("adsense-privacy-policy.php" instead of "privacy-policy.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected294 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 95 | 23 | 294 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin