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.19MB] [CPU: ▲0.78ms] Passed 4 tests
Analyzing server-side resources used by Cookie Accept - GDPR & CCPA Cookie Consent
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 46.78 ▼2.13 |
Dashboard /wp-admin | 3.50 ▲0.19 | 50.33 ▼0.19 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 52.64 ▲2.13 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 97.21 ▲3.38 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 40.11 ▲3.29 |
Cookie Accept /wp-admin/options-general.php?page=cookie-accept | 3.39 | 45.12 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cookie Accept - GDPR & CCPA Cookie Consent
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 13.30 ▼1.09 | 1.77 ▼0.38 | 43.13 ▲0.48 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.96 | 106.86 ▼9.77 | 43.55 ▲1.00 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.01 ▼0.00 | 41.08 ▲3.25 | 32.33 ▼3.22 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.61 ▼5.28 | 680.92 ▲26.19 | 53.53 ▲1.47 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.22 ▼0.04 | 100.90 ▼11.30 | 43.47 ▼5.84 |
Cookie Accept /wp-admin/options-general.php?page=cookie-accept | 2,266 | 1.72 | 27.15 | 51.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
cookie-accept/cookie-accept.php Passed 13 tests
The main PHP script in "Cookie Accept - GDPR & CCPA Cookie Consent" version 2.2.0 is automatically included on every request by WordPress
115 characters long description:
Cookie Accept is a simple cookie consent, concern and compliance. Get your site ready for GDPR, CCPA or the others.
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin2,281 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 169 | 196 | 1,468 |
Sass | 1 | 20 | 1 | 657 |
JavaScript | 2 | 28 | 19 | 138 |
SVG | 17 | 0 | 0 | 17 |
CSS | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 43.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 9.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 2 | 50.00% |
Methods | 20 | |
▷ Static methods | 3 | 15.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin