Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼0.08ms] Passed 4 tests
An overview of server-side resources used by Cookie Scanner - automated cookie list
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 43.91 ▲2.36 |
Dashboard /wp-admin | 3.72 ▲0.41 | 56.74 ▲2.02 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 53.57 ▲5.85 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.35 | 93.09 ▼10.56 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 45.06 ▲9.45 |
Cookie List /wp-admin/edit.php?post_type=cookielist_nscs | 3.68 | 46.02 |
Settings /wp-admin/edit.php?post_type=cookielist_nscs&page=cookie-scanner-nscs | 3.60 | 46.02 |
Add New /wp-admin/post-new.php?post_type=cookielist_nscs | 3.75 | 53.84 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Cookie Scanner - automated cookie list: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.27 ▼0.08 | 1.72 ▲0.11 | 43.51 ▼0.75 |
Dashboard /wp-admin | 2,226 ▲49 | 5.58 ▼0.07 | 83.67 ▼8.31 | 40.67 ▲3.02 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.95 ▼0.04 | 36.80 ▲1.02 | 33.43 ▼2.37 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.77 ▲0.83 | 682.17 ▼37.96 | 56.67 ▼4.36 |
Media Library /wp-admin/upload.php | 1,434 ▲40 | 4.20 ▲0.01 | 100.20 ▼3.94 | 44.43 ▼2.62 |
Cookie List /wp-admin/edit.php?post_type=cookielist_nscs | 1,139 | 1.97 | 30.70 | 31.04 |
Settings /wp-admin/edit.php?post_type=cookielist_nscs&page=cookie-scanner-nscs | 1,042 | 2.12 | 22.64 | 35.14 |
Add New /wp-admin/post-new.php?post_type=cookielist_nscs | 2,391 | 7.63 | 167.75 | 60.94 |
Uninstaller [IO: ▲0.12MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attentionZombie WordPress options detected upon uninstall: 7 options
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/cookie-scanner/uninstall.php+8
Constant PLUGIN_PATH_NSCS already defined
- Uninstaller has failed for this plugin, leaving 33 files (0.12MB) in the plugin directory
- (new file) admin/tpl/admin_head.php
- (new file) admin/tpl/tab_license.html
- (new file) admin/js/admin.js
- (new file) admin/tpl/top_description.html
- (new file) admin/tpl/tab_crawling_settings.html
- (new file) admin/tpl/admin_head_no_license.php
- (new file) admin/tpl/tab_general.html
- (new file) admin/tpl/admin_tabs.php
- (new file) admin/tpl/tab_faq.html
- (new file) admin/tpl/admin.php
- ...
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cookie-scanner/admin/tpl/admin_head.php
- > /wp-content/plugins/cookie-scanner/admin/tpl/admin_head_no_license.php
- > /wp-content/plugins/cookie-scanner/uninstall.php
- > /wp-content/plugins/cookie-scanner/admin/tpl/admin_tabs.php
- 29× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: settings_object in wp-content/plugins/cookie-scanner/admin/tpl/admin.php on line 1
- > PHP Notice
Trying to get property 'active_tab_index' of non-object in wp-content/plugins/cookie-scanner/admin/tpl/admin_tabs.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cookie-scanner/admin/tpl/admin_tabs.php on line 16
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/cookie-scanner/admin/tpl/admin_tabs.php on line 4
- > PHP Notice
Undefined variable: settings_object in wp-content/plugins/cookie-scanner/admin/tpl/admin_head_no_license.php on line 3
- > PHP Notice
Trying to get property 'settings_page_configs' of non-object in wp-content/plugins/cookie-scanner/admin/tpl/admin_head_no_license.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/cookie-scanner/admin/tpl/admin.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cookie-scanner/admin/tpl/admin.php on line 1
- > PHP Notice
Trying to get property 'setting_page_fields' of non-object in wp-content/plugins/cookie-scanner/admin/tpl/admin_tabs.php on line 4
- > PHP Notice
Trying to get property 'description' of non-object in wp-content/plugins/cookie-scanner/admin/tpl/admin_head.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Contributors: The plugin contributors field is missing
cookie-scanner/cookie-scanner-nscs.php 92% from 13 tests
The main file in "Cookie Scanner - automated cookie list" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cookie-scanner.php" instead of "cookie-scanner-nscs.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,133 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 230 | 48 | 1,480 |
HTML | 4 | 0 | 29 | 319 |
JSON | 2 | 0 | 0 | 309 |
CSS | 1 | 5 | 0 | 25 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 77 | 66.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 38 | 33.04% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin