Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.00ms] Passed 4 tests
This is a short check of server-side resources used by Cookie Consent for GDPR/CCPA | Securiti
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.02 ▲1.49 |
Dashboard /wp-admin | 3.32 ▼0.02 | 51.35 ▼13.89 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 51.61 ▲0.35 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.64 ▼10.29 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.68 ▼0.16 |
Cookie Consent for GDPR/CCPA | securiti /wp-admin/options-general.php?page=scc | 3.27 | 36.84 |
Server storage [IO: ▲2.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
scc_notice_update_date |
Browser metrics Passed 4 tests
Cookie Consent for GDPR/CCPA | Securiti: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲75 | 14.35 ▼0.01 | 1.96 ▲0.32 | 43.89 ▼7.45 |
Dashboard /wp-admin | 2,206 ▲38 | 5.63 ▲0.07 | 91.40 ▼9.62 | 43.44 ▼3.18 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.91 ▼0.09 | 33.60 ▼2.71 | 32.94 ▼2.73 |
Add New Post /wp-admin/post-new.php | 1,539 ▼141 | 23.34 ▲1.11 | 669.60 ▲11.90 | 58.56 ▼8.38 |
Media Library /wp-admin/upload.php | 1,411 ▲17 | 4.17 ▼0.03 | 112.49 ▲8.10 | 46.52 ▲3.19 |
Cookie Consent for GDPR/CCPA | securiti /wp-admin/options-general.php?page=scc | 951 | 1.89 | 26.18 | 152.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- scc_notice_update_date
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 items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/securiti-cookie-consent/admin/options-page.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #6 (Elegant Consumer Frontend), #7 (Fully Automated Backend), #8 (Privacy Regulation Intelligent, Everywhere)
securiti-cookie-consent/scc.php 69% from 13 tests
The main file in "Cookie Consent for GDPR/CCPA | Securiti" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("securiti-cookie-consent.php" instead of "scc.php")
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
- Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin727 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 124 | 340 | 263 |
Sass | 2 | 50 | 0 | 218 |
CSS | 1 | 0 | 0 | 217 |
JavaScript | 1 | 9 | 31 | 29 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 86.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 13.04% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.65MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/media/logo.png | 13.47KB | 5.71KB | ▼ 57.64% |
admin/media/innovation-award.png | 11.51KB | 5.37KB | ▼ 53.33% |
admin/media/header-bg.png | 3.46KB | 3.69KB | 0.00% |
admin/media/product-consent-landing.png | 609.38KB | 190.85KB | ▼ 68.68% |
admin/media/iapp-innovation-award-2020.png | 7.13KB | 7.57KB | 0.00% |