Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.16ms] Passed 4 tests
A check of server-side resources used by CookieConsent.io
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 36.82 ▲12.40 |
Dashboard /wp-admin | 3.08 ▲0.02 | 37.49 ▼6.95 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 44.86 ▼3.64 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 93.33 ▼558.96 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 33.20 ▲0.91 |
CookieConsent.io /wp-admin/tools.php?page=cookie-consent-io-settings | 2.99 | 28.45 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
CookieConsent.io: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.79 ▲0.30 | 10.58 ▲2.54 | 51.96 ▲1.57 |
Dashboard /wp-admin | 2,997 ▲66 | 6.06 ▼0.09 | 129.78 ▼14.77 | 124.50 ▲0.78 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.00 | 71.44 ▲3.15 | 97.48 ▲5.42 |
Add New Post /wp-admin/post-new.php | 1,686 ▲188 | 18.73 ▼0.09 | 384.57 ▲2.12 | 117.53 ▲2.33 |
Media Library /wp-admin/upload.php | 1,815 ▼7 | 5.02 ▲0.01 | 154.68 ▼0.28 | 130.06 ▲1.93 |
CookieConsent.io /wp-admin/tools.php?page=cookie-consent-io-settings | 1,153 | 2.08 | 53.98 | 70.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cookieconsent-io/cookie-consent-io.php:171
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: Please describe screenshot #1 in cookieconsent-io/assets to your readme.txt
cookieconsent-io/cookie-consent-io.php 92% from 13 tests
The main file in "CookieConsent.io" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cookieconsent-io.php" instead of "cookie-consent-io.php")
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 plugin110 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 35 | 30 | 110 |
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.12 |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
images/cookie-consent-io-logo.png | 10.17KB | 6.20KB | ▼ 38.98% |