Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.57ms] Passed 4 tests
This is a short check of server-side resources used by Cookie Warning
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.99 ▼5.85 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.96 ▼4.55 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.07 ▼1.12 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 95.78 ▲5.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.86 ▼2.76 |
Cookie warning /wp-admin/options-general.php?page=cookie-warning-page | 3.21 | 30.44 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cookie Warning
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲195 | 13.62 ▼0.59 | 7.72 ▲5.70 | 44.47 ▼1.68 |
Dashboard /wp-admin | 2,210 ▲22 | 5.82 ▲0.91 | 101.30 ▼6.31 | 38.95 ▼6.66 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.00 ▲0.03 | 40.07 ▲3.41 | 35.64 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,517 ▼17 | 23.40 ▲0.34 | 607.07 ▼58.97 | 47.05 ▼6.79 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.38 ▲0.17 | 97.72 ▼15.25 | 43.53 ▼5.51 |
Cookie warning /wp-admin/options-general.php?page=cookie-warning-page | 822 | 2.01 | 24.37 | 27.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookie-warning/cookie-warning-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookie-warning/cookie-warning-options.php:3
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Cookie warning message on first visit), #2 (Cookie warning options page)
cookie-warning/cookie-warning.php Passed 13 tests
The primary PHP file in "Cookie Warning" version 1.3 is used by WordPress to initiate all plugin functionality
82 characters long description:
Asks users for their consent for using cookies or redirects them out of your site.
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
No dangerous file extensions were detected273 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 25 | 30 | 132 |
JavaScript | 1 | 40 | 20 | 92 |
CSS | 1 | 5 | 0 | 43 |
XML | 1 | 0 | 1 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
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 | 12 | |
▷ Named functions | 12 | 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
3 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 53.88KB | 16.50KB | ▼ 69.37% |
screenshot-2.png | 68.79KB | 21.83KB | ▼ 68.27% |
cookie.png | 3.02KB | 2.05KB | ▼ 32.13% |