Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼145.14ms] Passed 4 tests
Analyzing server-side resources used by Cookie Notification
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 40.28 ▲5.43 |
Dashboard /wp-admin | 3.09 ▲0.04 | 49.73 ▲6.60 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 38.66 ▼7.88 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 92.54 ▼576.21 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 34.02 ▼1.89 |
Cookie Notification /wp-admin/options-general.php?page=cpwp_settings | 2.98 | 36.68 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Cookie Notification
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,850 ▲254 | 16.56 ▲1.00 | 16.72 ▲6.61 | 50.65 ▲1.83 |
Dashboard /wp-admin | 3,003 ▲69 | 6.58 ▲0.42 | 149.72 ▲1.77 | 123.29 ▲2.79 |
Posts /wp-admin/edit.php | 2,784 ▲45 | 3.16 ▲0.35 | 77.83 ▲9.17 | 114.10 ▲20.29 |
Add New Post /wp-admin/post-new.php | 1,652 ▼31 | 21.56 ▲2.87 | 292.08 ▼102.44 | 122.60 ▲7.24 |
Media Library /wp-admin/upload.php | 1,842 ▲35 | 5.35 ▲0.31 | 125.60 ▼20.29 | 125.70 ▲9.81 |
Cookie Notification /wp-admin/options-general.php?page=cpwp_settings | 1,922 | 2.87 | 84.98 | 83.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookie-notification/cookie-notification.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: cookie, notify, cookies, notice, notification
cookie-notification/cookie-notification.php Passed 13 tests
The main PHP file in "Cookie Notification" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
118 characters long description:
Displays customizable cookie notifications. Includes a preview function for viewing your changes before your users do.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin794 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 90 | 19 | 350 |
JavaScript | 4 | 39 | 23 | 175 |
CSS | 2 | 16 | 0 | 167 |
PO File | 1 | 32 | 32 | 98 |
INI | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.01 |
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 | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 5.12KB | 2.57KB | ▼ 49.88% |