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.06MB] [CPU: ▼7.18ms] Passed 4 tests
This is a short check of server-side resources used by Cookie Consent & Autoblock for GDPR/CCPA
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.52 ▼13.21 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.20 ▼3.53 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.50 ▼4.53 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 86.43 ▼7.46 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.83 ▲6.57 |
Cookie Consent & Autoblock /wp-admin/options-general.php?page=wpsj-settings | 3.28 | 35.06 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 16 new options
New WordPress options |
---|
wpsprucejoy_reject_button_text |
wpsprucejoy_button_color |
widget_recent-posts |
theysaidso_admin_options |
wpsprucejoy_buttontext_color |
can_compress_scripts |
wpsprucejoy_success_add_scripts |
wpsprucejoy_settings |
widget_recent-comments |
wpsprucejoy_text_color |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cookie Consent & Autoblock for GDPR/CCPA
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲76 | 13.06 ▼1.53 | 8.87 ▲6.95 | 47.31 ▲2.20 |
Dashboard /wp-admin | 2,201 ▲24 | 5.49 ▼0.18 | 89.08 ▼4.21 | 41.84 ▲6.24 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.02 | 34.85 ▼1.30 | 37.22 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 23.08 ▲0.01 | 695.08 ▲29.39 | 53.10 ▼6.75 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.15 ▼0.05 | 112.97 ▲5.76 | 46.54 ▲0.18 |
Cookie Consent & Autoblock /wp-admin/options-general.php?page=wpsj-settings | 1,484 | 2.63 | 68.23 | 54.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
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 79% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Requires at least: Invalid plugin version format
- Tags: There are too many tags (14 tag instead of maximum 10)
- Screenshots: Add an image for screenshot #1 ([TO BE ADD])
cookie-consent-autoblock/wp-sprucejoy.php 77% from 13 tests
"Cookie Consent & Autoblock for GDPR/CCPA" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 178 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cookie-consent-autoblock.php" instead of "wp-sprucejoy.php")
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
Good job! No executable or dangerous file extensions detected665 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 142 | 435 | 459 |
CSS | 1 | 12 | 15 | 119 |
Markdown | 1 | 17 | 0 | 50 |
JavaScript | 1 | 0 | 0 | 37 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 9.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 16 | |
▷ Static methods | 3 | 18.75% |
▷ Public methods | 16 | 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 | 3 | |
▷ Global constants | 3 | 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
5 PNG files occupy 0.28MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250-rtl.png | 66.64KB | 24.40KB | ▼ 63.38% |
assets/icon-256x256.png | 22.65KB | 8.70KB | ▼ 61.59% |
assets/banner-1544x500-rtl.png | 72.11KB | 30.43KB | ▼ 57.80% |
assets/banner-772x250.png | 66.85KB | 23.97KB | ▼ 64.15% |
assets/banner-1544x500.png | 55.56KB | 23.71KB | ▼ 57.33% |