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.03MB] [CPU: ▼1.57ms] Passed 4 tests
A check of server-side resources used by Light Weight Cookie Popup
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.36 ▼2.97 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.62 ▼0.99 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.72 ▼4.70 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.08 ▲2.38 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.38 ▲2.46 |
Light Weight Cookie Popup /wp-admin/options-general.php?page=lwcp | 3.22 | 29.52 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Light Weight Cookie Popup
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲156 | 13.57 ▼1.01 | 9.57 ▲8.05 | 41.51 ▼1.27 |
Dashboard /wp-admin | 2,213 ▲22 | 4.85 ▼1.05 | 102.71 ▼0.82 | 37.32 ▼4.06 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.01 | 34.85 ▼7.26 | 30.39 ▼5.86 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 23.25 ▼0.03 | 607.69 ▼74.53 | 55.47 ▲1.31 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.19 ▼0.01 | 102.16 ▼5.40 | 42.67 ▼3.00 |
Light Weight Cookie Popup /wp-admin/options-general.php?page=lwcp | 2,595 | 2.89 | 64.30 | 36.19 |
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 detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=lwcp
- > Notice in wp-content/plugins/light-weight-cookie-popup/ab-cookie-popup.php+446
Undefined offset: 0
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
light-weight-cookie-popup/ab-cookie-popup.php 85% from 13 tests
"Light Weight Cookie Popup" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("light-weight-cookie-popup.php" instead of "ab-cookie-popup.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin707 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 128 | 97 | 619 |
JavaScript | 4 | 25 | 23 | 87 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview 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.52 |
Average class complexity | 98.00 |
▷ Minimum class complexity | 98.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin