Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.99ms] Passed 4 tests
An overview of server-side resources used by CookieAlert
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.24 ▼3.08 |
Dashboard /wp-admin | 3.32 ▲0.01 | 51.57 ▼5.79 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.82 ▲2.81 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 94.69 ▲0.88 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.82 ▲0.02 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for CookieAlert
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲206 | 13.93 ▼0.38 | 6.59 ▲4.80 | 51.37 ▲3.13 |
Dashboard /wp-admin | 2,216 ▲28 | 5.80 ▼0.10 | 102.36 ▼15.62 | 41.76 ▼2.89 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.03 ▲0.02 | 40.29 ▲3.00 | 35.01 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 18.54 ▲0.94 | 680.21 ▲41.96 | 61.93 ▼0.00 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.17 ▼0.06 | 99.40 ▼5.41 | 43.79 ▼1.08 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cookiealert/public/partials/cookiealert-public-display.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: popup_interval in wp-content/plugins/cookiealert/admin/partials/cookiealert-admin-display.php on line 7
- > PHP Notice
Undefined variable: duration in wp-content/plugins/cookiealert/admin/partials/cookiealert-admin-display.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cookiealert/admin/partials/cookiealert-admin-display.php:14
- > PHP Notice
Undefined variable: btn_text in wp-content/plugins/cookiealert/public/partials/cookiealert-public-display.php on line 27
- > PHP Notice
Undefined variable: message in wp-content/plugins/cookiealert/public/partials/cookiealert-public-display.php on line 23
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== cookiealert ===
) - Screenshots: Please add images for these screenshots: #1 (frontend.png), #2 (backend.png)
cookiealert/cookiealert.php Passed 13 tests
The main PHP script in "CookieAlert" version 1.0.0 is automatically included on every request by WordPress
77 characters long description:
Cookie alert, A cooking consent plugin to show nitifiation to the front user.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin445 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 188 | 528 | 252 |
CSS | 2 | 14 | 4 | 138 |
JavaScript | 2 | 14 | 28 | 39 |
SVG | 1 | 0 | 1 | 16 |
PHP code Passed 2 tests
This is a short overview 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.12 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
frontend.png | 23.42KB | 9.40KB | ▼ 59.86% |
backend.png | 35.46KB | 14.31KB | ▼ 59.63% |