Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.85ms] Passed 4 tests
Analyzing server-side resources used by Cookie Notify
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.00 ▼2.17 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.04 ▼1.89 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.18 ▲4.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.83 ▼12.14 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.28 ▲0.79 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 31 new options
New WordPress options |
---|
db_upgraded |
cnpl_css |
cnpl_remember_corners |
cnpl_content_link_regulation_url |
theysaidso_admin_options |
cnpl_theme_css_links |
cnpl_settings_time |
cnpl_text_panel_opened |
cnpl_content_button_text |
cnpl_content_link_howto_url |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cookie Notify
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.34 ▼0.30 | 1.90 ▼0.00 | 45.50 ▼3.11 |
Dashboard /wp-admin | 2,213 ▲36 | 5.56 ▼0.02 | 83.77 ▼20.00 | 76.91 ▲33.56 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.94 ▼0.07 | 38.03 ▼0.65 | 34.11 ▼1.60 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.54 ▲0.38 | 733.30 ▲61.57 | 54.52 ▼8.91 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.08 ▼0.11 | 104.39 ▼3.71 | 80.22 ▲35.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: There are too many tags (15 tag instead of maximum 10)
cookie-notify/cookie-notify.php Passed 13 tests
Analyzing the main PHP file in "Cookie Notify" version 1.0.1
121 characters long description:
Cookie usage notification. Quick and easy configuration of position, appearance, colors, links, buttons and text content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,671 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 358 | 191 | 1,455 |
PO File | 1 | 81 | 91 | 216 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 11 | |
▷ Named functions | 11 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/powiadomienie-cookie-bottom.png | 4.47KB | 2.94KB | ▼ 34.29% |
images/powiadomienie-cookie-bottom-right.png | 4.50KB | 2.98KB | ▼ 33.73% |
images/powiadomienie-cookie-bottom-left.png | 4.57KB | 2.99KB | ▼ 34.69% |
images/plugin-icon.png | 1.38KB | 1.34KB | ▼ 2.69% |
images/powiadomienie-cookie-top-left.png | 4.68KB | 2.98KB | ▼ 36.40% |