Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.00ms] Passed 4 tests
A check of server-side resources used by WP Reliable Cookie Bar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.49 ▼3.26 |
Dashboard /wp-admin | 3.32 ▼0.02 | 48.55 ▼18.99 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.07 ▼1.53 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 96.65 ▼4.22 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.04 ▲1.24 |
WP Reliable Cookie Bar /wp-admin/options-general.php?page=wprcb-settings | 3.19 | 34.95 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Reliable Cookie Bar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.72 ▲0.37 | 2.05 ▲0.23 | 43.56 ▼0.30 |
Dashboard /wp-admin | 2,202 ▲25 | 5.64 ▲0.02 | 91.14 ▼16.64 | 39.32 ▼12.40 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▼0.04 | 40.39 ▼0.20 | 38.63 ▲4.34 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.21 ▼0.43 | 661.72 ▲8.79 | 59.19 ▲10.08 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.02 | 94.53 ▼9.47 | 39.99 ▼5.68 |
WP Reliable Cookie Bar /wp-admin/options-general.php?page=wprcb-settings | 948 | 2.00 | 25.77 | 29.01 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wprcb-settings
- > Notice in wp-content/plugins/wp-realiable-cookie-bar/admin.php+227
Trying to access array offset on value of type bool
SRP 0% 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 fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-realiable-cookie-bar/wp-reliable-cookie-bar.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-realiable-cookie-bar/admin.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=wprcb-settings
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=wprcb-settings 144 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=wprcb-settings
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=wprcb-settings 145 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=wprcb-settings
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=wprcb-settings 155 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=wprcb-settings
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=wprcb-settings 156 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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:
- Screenshots: A description for screenshot #1 is required in wp-realiable-cookie-bar/assets to your readme.txt
- Contributors: Plugin contributors field is missing
wp-realiable-cookie-bar/wp-reliable-cookie-bar.php 85% from 13 tests
Analyzing the main PHP file in "WP Reliable Cookie Bar" version 1.5
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-realiable-cookie-bar.php" instead of "wp-reliable-cookie-bar.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin349 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 53 | 14 | 299 |
CSS | 1 | 1 | 0 | 50 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 21 | |
▷ Named functions | 21 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wp-reliable-cookie-bar-logo.png | 151.61KB | 65.41KB | ▼ 56.85% |