Benchmarks
Plugin footprint 83% from 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.01MB] [CPU: ▼4.65ms] Passed 4 tests
Server-side resources used by WP Cookies Alert
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.33 ▼1.70 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.20 ▲1.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.68 ▼6.93 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 95.97 ▼9.80 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 39.72 ▼0.16 |
WP Cookies Alert /wp-admin/options-general.php?page=wpca-options | 3.20 | 32.33 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
wpca_en |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP Cookies Alert
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲169 | 13.78 ▼0.75 | 8.74 ▲7.12 | 43.29 ▲2.08 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▼0.05 | 90.72 ▼8.58 | 39.53 ▼2.62 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.02 | 39.35 ▼1.61 | 37.13 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.26 ▼0.43 | 646.82 ▼42.85 | 54.08 ▼8.95 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.12 | 95.80 ▼14.72 | 45.09 ▼2.28 |
WP Cookies Alert /wp-admin/options-general.php?page=wpca-options | 1,055 | 2.01 | 23.18 | 33.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- wpca_en
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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
Good news, no errors were detected
SRP 50% 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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cookies-alert/wpca-admin.php:157
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cookies-alert/wpca-helpers.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cookies-alert/wpca-helpers.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cookies-alert/wpca-front.php:61
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (screenshot-1.png WP Cookies Alert administration screen.), #2 (screenshot-2.png Alert box position top.), #3 (screenshot-3.png Alert box position fixed top.), #4 (screenshot-4.png Alert box position bottom.), #5 (screenshot-5.png Alert box position fixed bottom.)
wp-cookies-alert/wpca.php 85% from 13 tests
The main file in "WP Cookies Alert" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-cookies-alert.php" instead of "wpca.php")
- Description: Keep the plugin description shorter than 140 characters (currently 208 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin405 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 14 | 61 | 312 |
PO File | 1 | 32 | 67 | 83 |
CSS | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
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 | 12 | |
▷ Named functions | 12 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.38MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 119.62KB | 45.79KB | ▼ 61.72% |
screenshot-5.png | 78.59KB | 28.92KB | ▼ 63.20% |
screenshot-3.png | 68.52KB | 24.47KB | ▼ 64.29% |
screenshot-2.png | 78.54KB | 28.17KB | ▼ 64.13% |
screenshot-4.png | 39.29KB | 14.43KB | ▼ 63.28% |