Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼8.51ms] Passed 4 tests
Analyzing server-side resources used by Easy cookie consent
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 37.35 ▼1.09 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.15 ▲1.85 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 45.60 ▼9.80 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 81.61 ▼18.81 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 33.09 ▼4.32 |
Cookie consent /wp-admin/options-general.php?page=easy-cookie-consent-settings | 3.29 | 35.86 |
Server storage [IO: ▲0.11MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_easy_cookie_consent |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
easy-cookie-consent-version |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
easy-cookie-consent-settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy cookie consent
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,007 ▲272 | 13.28 ▼1.11 | 9.00 ▲7.34 | 83.82 ▲42.89 |
Dashboard /wp-admin | 2,209 ▲24 | 6.07 ▲1.18 | 106.76 ▲2.38 | 38.86 ▼2.46 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.04 ▲0.04 | 34.64 ▼5.69 | 33.98 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,533 ▼4 | 23.31 ▼0.03 | 631.95 ▼39.47 | 49.69 ▼6.63 |
Media Library /wp-admin/upload.php | 1,394 ▲12 | 4.32 ▲0.08 | 93.54 ▼10.29 | 42.14 ▼3.01 |
Cookie consent /wp-admin/options-general.php?page=easy-cookie-consent-settings | 1,424 | 2.06 | 23.48 | 36.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_easy_cookie_consent
- Zombie WordPress options were found after uninstall: 8 options
- easy-cookie-consent-version
- widget_recent-comments
- easy-cookie-consent-settings
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
No tags were found
easy-cookie-consent/easy-cookie-consent.php Passed 13 tests
"Easy cookie consent" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
111 characters long description:
Plugin implements orestbida/cookieconsent cookie consent solution and stores consents in custom database table.
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
No dangerous file extensions were detected1,274 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 103 | 147 | 658 |
JSON | 1 | 0 | 0 | 246 |
JavaScript | 3 | 24 | 16 | 188 |
PO File | 1 | 50 | 70 | 126 |
Sass | 2 | 9 | 0 | 53 |
CSS | 3 | 0 | 2 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 3 | 15.00% |
▷ Public methods | 9 | 45.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 55.00% |
Functions | 13 | |
▷ Named functions | 1 | 7.69% |
▷ Anonymous functions | 12 | 92.31% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin