Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.97ms] Passed 4 tests
This is a short check of server-side resources used by Zestard Cookie Consent
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.35 ▲1.70 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.60 ▼0.76 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 49.14 ▼3.96 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.30 ▼24.84 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.42 ▲3.07 |
Cookie Consent /wp-admin/options-general.php?page=zestard_cookie_consent | 3.36 | 32.91 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 31 new options
New WordPress options |
---|
widget_recent-posts |
read_more_text |
cookie_bar_status |
cookie_bar_show_in |
accept_btn_text |
read_more_option |
bar_bg_color |
read_more_text_color |
reject_btn_or_link_option |
accept_btn_or_link_option |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Zestard Cookie Consent
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.34 ▼1.03 | 1.79 ▲0.03 | 44.16 ▼0.39 |
Dashboard /wp-admin | 2,236 ▲48 | 5.14 ▲0.24 | 104.47 ▼17.99 | 42.66 ▲1.56 |
Posts /wp-admin/edit.php | 2,121 ▲29 | 2.48 ▲0.49 | 41.22 ▼12.08 | 34.02 ▼8.92 |
Add New Post /wp-admin/post-new.php | 1,548 ▲29 | 23.01 ▼0.18 | 675.81 ▲57.00 | 40.30 ▼11.47 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.50 ▲0.18 | 106.13 ▼1.38 | 46.34 ▼4.74 |
Cookie Consent /wp-admin/options-general.php?page=zestard_cookie_consent | 2,134 | 3.00 | 74.75 | 26.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=zestard_cookie_consent
- > Notice in wp-content/plugins/zestard-cookie-consent/admin/inc/admin-layout.php+73
Undefined index: ztpl-tab-select
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/zestard-cookie-consent/zestard-cookie-consent.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/zestard-cookie-consent/public/inc/front-cookiebar-view.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/zestard-cookie-consent/admin/inc/admin-layout.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/zestard-cookie-consent/admin/inc/add-option.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/zestard-cookie-consent/public/inc/front-cookiebar-view.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid URI: "''"
zestard-cookie-consent/zestard-cookie-consent.php Passed 13 tests
The main PHP file in "Zestard Cookie Consent" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Simple and easy to manage cookie consent bar with GDPR.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin768 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 194 | 69 | 463 |
CSS | 2 | 30 | 18 | 170 |
JavaScript | 3 | 36 | 26 | 135 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin