Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.97ms] Passed 4 tests
Server-side resources used by consentmanager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.08 | 52.83 ▲3.42 |
Dashboard /wp-admin | 3.41 ▲0.02 | 50.91 ▼14.09 |
Posts /wp-admin/edit.php | 3.52 ▲0.13 | 48.82 ▼1.68 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.06 | 88.93 ▼7.52 |
Media Library /wp-admin/upload.php | 3.33 ▲0.06 | 38.90 ▲8.05 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for consentmanager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.10 ▼0.49 | 1.95 ▲0.15 | 42.41 ▲1.43 |
Dashboard /wp-admin | 2,211 ▲31 | 5.49 ▼0.12 | 89.93 ▲2.76 | 84.88 ▲43.11 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.12 ▲0.10 | 33.80 ▼1.64 | 32.11 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.16 ▼0.14 | 632.91 ▼35.27 | 168.07 ▲101.06 |
Media Library /wp-admin/upload.php | 1,413 ▲10 | 4.21 ▲0.03 | 95.65 ▼4.63 | 77.85 ▲35.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/consent-manager/views/admin.php
- > /wp-content/plugins/consent-manager/consentmanager.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
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:
- Donate link: Please fix this invalid url: "no donate-link provided"
- Tags: You are using too many tags: 13 tag instead of maximum 10
consent-manager/consentmanager.php 85% from 13 tests
The principal PHP file in "consentmanager" v. 3.0.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("consent-manager.php" instead of "consentmanager.php")
- Description: The description should be shorter than 140 characters (currently 142 characters long)
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 detected492 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 91 | 263 | 424 |
CSS | 1 | 0 | 0 | 68 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 13 | 100.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo_neu.png | 19.21KB | 7.45KB | ▼ 61.23% |
assets/images/cmpid.png | 34.77KB | 12.74KB | ▼ 63.36% |
assets/images/cmpcodeid.png | 34.38KB | 12.61KB | ▼ 63.31% |
assets/images/cmphost.png | 82.98KB | 32.33KB | ▼ 61.03% |
assets/images/cmpcdn.png | 36.03KB | 13.00KB | ▼ 63.91% |