Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼12.34ms] Passed 4 tests
Server-side resources used by WP Smart Cookie Allow
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.04 | 21.46 ▼22.04 |
Dashboard /wp-admin | 3.39 ▲0.08 | 43.90 ▼3.90 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 46.89 ▼1.50 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 77.63 ▼20.29 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 32.17 ▼3.14 |
Cookie Allow Permission /wp-admin/options-general.php?page=Cookies-allow | 3.24 | 33.14 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
cookie_text_url |
cookie_text_data |
cookie_text_time |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Smart Cookie Allow
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲81 | 13.29 ▼1.02 | 2.05 ▼0.04 | 45.58 ▼1.21 |
Dashboard /wp-admin | 2,213 ▲25 | 5.84 ▲0.89 | 97.63 ▼11.88 | 39.75 ▼2.06 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.00 | 40.03 ▲1.02 | 36.00 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,517 ▼5 | 17.58 ▼5.51 | 699.00 ▲4.26 | 63.63 ▲14.28 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.05 | 96.83 ▼22.16 | 39.72 ▼9.63 |
Cookie Allow Permission /wp-admin/options-general.php?page=Cookies-allow | 844 | 2.03 | 27.91 | 30.74 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- cookie_text_url
- cookie_text_time
- widget_recent-comments
- cookie_text_data
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-smart-cookie-allow/assets/noty.php
- > /wp-content/plugins/wp-smart-cookie-allow/assets/noty-js.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-smart-cookie-allow/index.php:12
- > PHP Fatal error
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 Passed 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
6 plugin tags: eu, allow, cookie, cookies, allow cookies...
wp-smart-cookie-allow/index.php 85% from 13 tests
Analyzing the main PHP file in "WP Smart Cookie Allow" version 1.3
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 328 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-smart-cookie-allow.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin830 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 157 | 70 | 618 |
PHP | 3 | 114 | 34 | 182 |
CSS | 1 | 3 | 10 | 30 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/controls.png | 0.56KB | 0.57KB | 0.00% |