Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.36ms] Passed 4 tests
This is a short check of server-side resources used by Simple Cookie Notification Bar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 34.81 ▼4.48 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.73 ▼0.43 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 46.72 ▼4.16 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 81.38 ▼8.10 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 34.66 ▼0.71 |
Simple Cookie Bar /wp-admin/options-general.php?page=scnb-options | 3.28 | 30.47 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
scnb_settings |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Simple Cookie Notification Bar: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲184 | 13.74 ▼0.61 | 6.20 ▲4.50 | 48.69 ▲7.07 |
Dashboard /wp-admin | 2,228 ▲46 | 5.06 ▼0.82 | 103.49 ▲0.50 | 37.28 ▼9.59 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.32 ▲0.23 | 43.35 ▲1.76 | 36.65 ▼0.94 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 17.72 ▼5.48 | 666.76 ▼0.85 | 36.35 ▼24.07 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.38 ▲0.17 | 87.93 ▼11.96 | 39.69 ▼4.25 |
Simple Cookie Bar /wp-admin/options-general.php?page=scnb-options | 1,653 | 3.03 | 66.65 | 32.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/simple-cookie-notification-bar/includes/front-cookiebar.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-cookie-notification-bar/includes/settings-form.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: fixed bar, customizable, cookies, notifications, responsive
simple-cookie-notification-bar/simple-cookie-notification-bar.php Passed 13 tests
This is the main PHP file of "Simple Cookie Notification Bar" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
100 characters long description:
Displays a simple cookie notification bar on the bottom of the page, customizable colours and texts.
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
There were no executable files found in this plugin611 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 240 | 175 | 358 |
PO File | 2 | 49 | 52 | 136 |
CSS | 3 | 3 | 18 | 58 |
JavaScript | 2 | 57 | 23 | 49 |
XML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 22 | |
▷ Static methods | 12 | 54.55% |
▷ Public methods | 15 | 68.18% |
▷ Protected methods | 1 | 4.55% |
▷ Private methods | 6 | 27.27% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin