68% confirm-cookies-info

Code Review | Confirm Cookies Info

WordPress plugin Confirm Cookies Info scored68%from 54 tests.

About plugin

  • Plugin page: confirm-cookies-info
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jan 27, 2014
  • Latest release: May 19, 2014
  • Number of updates: 6
  • Update frequency: every 56.8 days
  • Top authors: ArturTG (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,431 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.42 ▼0.45
Dashboard /wp-admin3.03 ▼0.3224.42 ▼37.01
Posts /wp-admin/edit.php3.03 ▼0.3325.66 ▼25.26
Add New Post /wp-admin/post-new.php3.03 ▼2.8623.10 ▼72.95
Media Library /wp-admin/upload.php3.03 ▼0.2023.20 ▼11.48
Confirm Cookies Info /wp-admin/options-general.php?page=confirm-cookies-info/includes/as_cci_main_class.php3.0322.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,077 ▲33113.96 ▼0.407.76 ▲6.0145.62 ▲1.23
Dashboard /wp-admin2,289 ▲1014.93 ▼0.95111.93 ▼7.0476.61 ▲30.21
Posts /wp-admin/edit.php2,100 ▲112.03 ▼0.0239.77 ▲3.0537.07 ▲3.74
Add New Post /wp-admin/post-new.php1,524 ▲1023.06 ▲5.30686.47 ▲2.5175.94 ▲24.10
Media Library /wp-admin/upload.php1,399 ▲114.30 ▲0.06100.98 ▼15.7644.86 ▼2.83
Confirm Cookies Info /wp-admin/options-general.php?page=confirm-cookies-info/includes/as_cci_main_class.php1,3561.7225.4038.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP65459458
CSS226160
PO File15759134
JavaScript264105
HTML50054

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 code0.29
Average class complexity13.33
▷ Minimum class complexity6.00
▷ Maximum class complexity19.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods1337.14%
▷ Protected methods00.00%
▷ Private methods2262.86%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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