Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/free-ccpa-cookie/ccpa-free-cookie.php+57
Undefined variable: country
Server metrics [RAM: ▼1.91MB] [CPU: ▲59.01ms] Passed 4 tests
Server-side resources used by Free CCPA Cookie
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 127.57 ▲73.41 |
Dashboard /wp-admin | 2.11 ▼1.24 | 130.91 ▲69.19 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 120.18 ▲65.58 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 143.18 ▲27.85 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 126.38 ▲87.25 |
CCPA for WP /wp-admin/options-general.php?page=ccpa_for_wp | 2.11 | 125.98 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Free CCPA Cookie
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 14.75 ▲0.37 | 2.35 ▲0.40 | 44.35 ▲2.95 |
Dashboard /wp-admin | 2,213 ▲25 | 5.88 ▲1.00 | 101.11 ▼11.91 | 38.55 ▲2.67 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.00 ▼0.14 | 41.10 ▲0.97 | 34.40 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 21.00 ▼2.18 | 658.26 ▼32.53 | 61.46 ▲3.22 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.21 ▲0.05 | 101.44 ▼14.62 | 45.65 ▼7.09 |
CCPA for WP /wp-admin/options-general.php?page=ccpa_for_wp | 822 | 2.02 | 23.95 | 27.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/free-ccpa-cookie/ccpa-free-cookie.php+57
Undefined variable: country
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=ccpa_for_wp
- > Notice in wp-content/plugins/free-ccpa-cookie/ccpa-free-cookie.php+57
Undefined variable: country
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ccpa_for_wp
- > Notice in wp-content/plugins/free-ccpa-cookie/ccpa-free-cookie.php+237
Trying to access array offset on value of type bool
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: consent, cookies, compliance, ccpa
free-ccpa-cookie/ccpa-free-cookie.php 77% from 13 tests
Analyzing the main PHP file in "Free CCPA Cookie" version 1.0
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("free-ccpa-cookie.php" instead of "ccpa-free-cookie.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected236 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 15 | 203 |
JavaScript | 1 | 4 | 0 | 29 |
CSS | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected