Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.17ms] Passed 4 tests
Analyzing server-side resources used by oik-privacy-policy
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.01 | 47.08 ▼0.35 |
Dashboard /wp-admin | 3.60 ▼0.03 | 50.53 ▼13.74 |
Posts /wp-admin/edit.php | 3.71 ▲0.03 | 50.47 ▼2.54 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.03 | 99.01 ▲2.47 |
Media Library /wp-admin/upload.php | 3.53 ▲0.04 | 36.15 ▼8.06 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for oik-privacy-policy
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲50 | 14.28 ▼0.37 | 1.71 ▼0.09 | 43.11 ▼1.31 |
Dashboard /wp-admin | 2,199 ▲22 | 5.59 ▼0.04 | 87.95 ▼0.47 | 39.94 ▼2.04 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 2.01 ▼0.03 | 34.32 ▼2.27 | 34.73 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,561 ▲20 | 18.13 ▼0.20 | 612.03 ▼16.48 | 60.75 ▲5.39 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.22 ▼0.04 | 100.84 ▼4.87 | 41.76 ▼4.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 add_action() in wp-content/plugins/oik-privacy-policy/oik-privacy-policy.php:72
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% 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:
- Screenshots: Screenshot #1 (Sample generated page: from What is a cookie?) image not found
oik-privacy-policy/oik-privacy-policy.php Passed 13 tests
Analyzing the main PHP file in "oik-privacy-policy" version 1.4.6
106 characters long description:
Generate a privacy policy page, compliant with UK cookie law (EU cookie directive) for use on your website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,136 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 232 | 242 | 702 |
PHP | 4 | 100 | 269 | 421 |
Pascal | 1 | 32 | 93 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.67MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 38.80KB | 18.40KB | ▼ 52.59% |
screenshot-4.png | 57.36KB | 19.87KB | ▼ 65.36% |
screenshot-1.png | 159.77KB | 54.31KB | ▼ 66.01% |
screenshot-3.png | 201.01KB | 64.50KB | ▼ 67.91% |
screenshot-2.png | 231.76KB | 75.23KB | ▼ 67.54% |