Benchmarks
Plugin footprint 65% 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: ▼1.19MB] [CPU: ▼342.07ms] Passed 4 tests
This is a short check of server-side resources used by AdSense Privacy Policy
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.05 | 61.16 ▲5.69 |
Dashboard /wp-admin | 3.14 ▼0.27 | 19.12 ▼53.92 |
Posts /wp-admin/edit.php | 3.14 ▼0.50 | 18.03 ▼46.80 |
Add New Post /wp-admin/post-new.php | 3.14 ▼3.83 | 18.13 ▼1,256.67 |
Media Library /wp-admin/upload.php | 3.14 ▼0.16 | 19.59 ▼10.89 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 11 new options
New WordPress options |
---|
privacy_policy_browser_help |
privacy_policy_before_heading |
privacy_policy_after_paragraph |
privacy_policy_after_heading |
privacy_policy_before_paragraph |
privacy_policy_sitename |
privacy_policy_credit |
privacy_policy_title |
privacy_policy_slug |
privacy_policy_contact |
... |
Browser metrics Passed 4 tests
A check of browser resources used by AdSense Privacy Policy
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲24 | 16.13 ▲0.39 | 5.89 ▲0.07 | 2.50 ▲0.39 |
Dashboard /wp-admin | 2,893 ▲35 | 6.15 ▼0.04 | 128.02 ▼21.17 | 226.22 ▲56.27 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.24 ▲0.02 | 74.11 ▲7.68 | 149.56 ▲2.61 |
Add New Post /wp-admin/post-new.php | 1,755 ▲94 | 20.83 ▲4.91 | 455.13 ▲25.88 | 170.37 ▲17.23 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.47 ▼0.05 | 194.69 ▲52.73 | 183.85 ▼0.96 |
Adsense Privacy Policy /wp-admin/privacy-policy.php | 26 | 0.94 | 0.03 | 23.83 |
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
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5600
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 11 options in the database
- privacy_policy_after_paragraph
- privacy_policy_title
- privacy_policy_before_paragraph
- privacy_policy_before_heading
- privacy_policy_pp_help
- privacy_policy_contact
- privacy_policy_credit
- privacy_policy_after_heading
- privacy_policy_slug
- privacy_policy_sitename
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > 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
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== adsense-privacy-policy ===
)
adsense-privacy-policy/privacy-policy.php 92% from 13 tests
This is the main PHP file of "AdSense Privacy Policy" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin294 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
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
PNG images were not found in this plugin