Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.82ms] Passed 4 tests
A check of server-side resources used by Policy Highlights: Focus on Vital Keywords
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 31.04 ▲11.08 |
Dashboard /wp-admin | 3.08 ▲0.02 | 50.31 ▼3.33 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 47.28 ▲1.01 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 94.01 ▼565.60 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 34.23 ▼3.36 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Policy Highlights: Focus on Vital Keywords
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,735 ▲139 | 15.89 ▲0.35 | 11.26 ▼0.96 | 47.94 ▼2.18 |
Dashboard /wp-admin | 2,992 ▲61 | 5.94 ▲0.00 | 153.54 ▲9.11 | 124.28 ▲5.56 |
Posts /wp-admin/edit.php | 2,789 ▲50 | 2.83 ▲0.11 | 63.63 ▼15.36 | 86.09 ▼1.20 |
Add New Post /wp-admin/post-new.php | 1,732 ▲49 | 24.01 ▲7.80 | 418.81 ▲9.39 | 102.46 ▼12.25 |
Media Library /wp-admin/upload.php | 1,780 ▼27 | 5.03 ▼0.01 | 144.92 ▼19.11 | 138.30 ▲23.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
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)
Even though no errors were found, 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 fix 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/weareprivacy/plugin.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Donate link: Please fix this invalid url: ""
weareprivacy/plugin.php 92% from 13 tests
The main file in "Policy Highlights: Focus on Vital Keywords" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("weareprivacy.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin127 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 9 | 0 | 66 |
PHP | 1 | 14 | 11 | 59 |
JavaScript | 1 | 0 | 0 | 1 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for 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 | 5 | |
▷ Named functions | 5 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
sidebar-icon.png | 0.30KB | 0.26KB | ▼ 14.84% |