Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.92MB] [CPU: ▼36.68ms] Passed 4 tests
A check of server-side resources used by Confirm Cookies Info
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.42 ▼0.45 |
Dashboard /wp-admin | 3.03 ▼0.32 | 24.42 ▼37.01 |
Posts /wp-admin/edit.php | 3.03 ▼0.33 | 25.66 ▼25.26 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.86 | 23.10 ▼72.95 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 23.20 ▼11.48 |
Confirm Cookies Info /wp-admin/options-general.php?page=confirm-cookies-info/includes/as_cci_main_class.php | 3.03 | 22.08 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
as_cci_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Confirm Cookies Info
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,077 ▲331 | 13.96 ▼0.40 | 7.76 ▲6.01 | 45.62 ▲1.23 |
Dashboard /wp-admin | 2,289 ▲101 | 4.93 ▼0.95 | 111.93 ▼7.04 | 76.61 ▲30.21 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.03 ▼0.02 | 39.77 ▲3.05 | 37.07 ▲3.74 |
Add New Post /wp-admin/post-new.php | 1,524 ▲10 | 23.06 ▲5.30 | 686.47 ▲2.51 | 75.94 ▲24.10 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.30 ▲0.06 | 100.98 ▼15.76 | 44.86 ▼2.83 |
Confirm Cookies Info /wp-admin/options-general.php?page=confirm-cookies-info/includes/as_cci_main_class.php | 1,356 | 1.72 | 25.40 | 38.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% 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
- > GET request to /wp-admin/options-general.php?page=confirm-cookies-info/includes/as_cci_main_class.php
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/options-general.php?page=confirm-cookies-info/includes/as_cci_main_class.php
- > Notice in wp-content/plugins/confirm-cookies-info/templates/settings.php+86
Undefined index: cci_btn_more_link
SRP 50% 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 trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/confirm-cookies-info/confirm-cookies-info.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: cookies technology, cookies info, cookies, confirm, confirm cookie informations
confirm-cookies-info/confirm-cookies-info.php Passed 13 tests
"Confirm Cookies Info" version 0.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
120 characters long description:
Confirm Cookies Info - small plugin for all who on his blog have / should put the text on the use of cookies technology.
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
Everything looks great! No dangerous files found in this plugin911 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 54 | 59 | 458 |
CSS | 2 | 2 | 6 | 160 |
PO File | 1 | 57 | 59 | 134 |
JavaScript | 2 | 6 | 4 | 105 |
HTML | 5 | 0 | 0 | 54 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 13.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 13 | 37.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 62.86% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There were not PNG files found in your plugin