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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.64MB] [CPU: ▲1.75ms] Passed 4 tests
This is a short check of server-side resources used by Seers | GDPR & CCPA Cookie Consent & Compliance
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.51 ▲1.05 | 51.10 ▲11.87 |
Dashboard /wp-admin | 3.93 ▲0.63 | 50.89 ▲2.96 |
Posts /wp-admin/edit.php | 4.04 ▲0.69 | 53.87 ▲4.76 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.62 | 91.22 ▼5.16 |
Media Library /wp-admin/upload.php | 3.85 ▲0.62 | 39.05 ▲4.42 |
Server storage [IO: ▲4.51MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 168 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
SCCBPP_cookie_consent_defaultsettings |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Seers | GDPR & CCPA Cookie Consent & Compliance
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,070 ▲309 | 14.56 ▲0.29 | 2.94 ▲1.37 | 61.83 ▲22.64 |
Dashboard /wp-admin | 2,213 ▲41 | 5.62 ▼0.10 | 89.95 ▼15.10 | 58.67 ▲15.81 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 2.03 ▲0.00 | 39.35 ▼0.77 | 35.35 ▲3.34 |
Add New Post /wp-admin/post-new.php | 1,541 ▲10 | 23.31 ▲0.16 | 637.14 ▼40.18 | 58.66 ▲5.71 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.19 ▲0.07 | 92.68 ▼19.91 | 43.85 ▼4.97 |
Uninstaller [IO: ▲4.51MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the followingThis plugin did not uninstall successfully, leaving 7 options in the database
- The plugin did not uninstall successfully, leaving 168 files (4.51MB) in the plugin directory
- (new file) fonts/seers-plugin-font-icons.eot
- (new file) css/popup.css
- (new file) images/Choose your Covid-19.svg
- (new file) fonts/seers-plugin-font-icons.svg
- (new file) images/5 cookie consent banner design.svg
- (new file) images/----seers-logo.svg
- (new file) css/cookie-style.css
- (new file) css/seers-plugin-font-icons.css
- (new file) fonts/seers-plugin-font-icons.ttf
- (new file) fonts/seers-plugin-font-icons.woff
- ...
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- SCCBPP_cookie_consent_defaultsettings
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/seers-cookie-consent-banner-privacy-policy/seers-cookie-consent-banner-privacy-policy.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/seers-cookie-consent-banner-privacy-policy/templates/frontend-popup.php:7
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% 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:
- Requires at least: Version not formatted correctly
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7 in seers-cookie-consent-banner-privacy-policy/assets to your readme.txt
seers-cookie-consent-banner-privacy-policy/seers-cookie-consent-banner-privacy-policy.php 77% from 13 tests
This is the main PHP file of "Seers | GDPR & CCPA Cookie Consent & Compliance" version 8.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
- Domain Path: You should use only dashes and lowercase characters for the domain path ("/Languages")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin42,402 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 60 | 13,279 | 16,758 | 33,912 |
PHP | 8 | 1,128 | 601 | 6,442 |
CSS | 3 | 165 | 106 | 1,630 |
SVG | 17 | 0 | 0 | 406 |
JavaScript | 2 | 0 | 62 | 12 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 224)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.68 |
Average class complexity | 149.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 576.00 |
Average method complexity | 23.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 224.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 25 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.41% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Seers-logo1.png | 6.30KB | 3.09KB | ▼ 50.97% |
images/plugin-player1.png | 3.35KB | 1.11KB | ▼ 66.78% |
images/Solid256dot32_2_navy.png | 3.71KB | 0.16KB | ▼ 95.60% |
images/Seers-logo.png | 6.30KB | 3.09KB | ▼ 50.97% |
images/play.png | 5.98KB | 5.62KB | ▼ 6.12% |