Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼9.91ms] Passed 4 tests
A check of server-side resources used by Cookie Notice Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 41.60 ▼2.09 |
Dashboard /wp-admin | 3.40 ▲0.05 | 48.78 ▼15.48 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 54.22 ▲4.88 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 84.98 ▼21.56 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.63 ▼0.49 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 23 new options
New WordPress options |
---|
dc_cnb_text_color |
dc_cnb_read_more_target |
dc_cnb_button_background |
dc_cnb_button_border_radius |
dc_cnb_time |
dc_cnb_text_background |
dc_cnb_read_more_link |
dc_cnb_position |
can_compress_scripts |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Cookie Notice Bar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲179 | 13.93 ▼0.42 | 7.99 ▲6.11 | 46.06 ▼0.13 |
Dashboard /wp-admin | 2,229 ▲52 | 5.81 ▲0.28 | 91.46 ▼8.51 | 40.42 ▼0.64 |
Posts /wp-admin/edit.php | 2,142 ▲45 | 2.29 ▲0.30 | 40.32 ▲0.49 | 35.73 ▼5.11 |
Add New Post /wp-admin/post-new.php | 1,561 ▲26 | 23.04 ▼1.53 | 691.86 ▲65.74 | 37.76 ▼24.69 |
Media Library /wp-admin/upload.php | 1,438 ▲41 | 4.34 ▲0.22 | 98.32 ▼2.95 | 44.76 ▼0.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/cookie-notice-bar/public/partials/dc-cookie-notice-bar-public-display.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cookie-notice-bar/admin/partials/dc-cookie-notice-bar-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Tags: There are too many tags (14 tag instead of maximum 10)
cookie-notice-bar/dc-cookie-notice-bar.php 85% from 13 tests
"Cookie Notice Bar" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("cookie-notice-bar.php" instead of "dc-cookie-notice-bar.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 plugin697 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 130 | 582 | 516 |
PO File | 1 | 51 | 51 | 140 |
JavaScript | 2 | 2 | 54 | 24 |
CSS | 2 | 1 | 8 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 3.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected