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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.74ms] Passed 4 tests
An overview of server-side resources used by Online-Results Cookie Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.27 ▼1.57 |
Dashboard /wp-admin | 3.32 ▼0.02 | 42.56 ▼17.48 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.31 ▼0.23 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.44 ▼13.26 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.24 ▼2.64 |
Cookie Manager /wp-admin/options-general.php?page=oras | 3.21 | 28.08 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
oras_option_name |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Online-Results Cookie Manager: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.48 ▲0.12 | 1.92 ▲0.20 | 41.11 ▼2.28 |
Dashboard /wp-admin | 2,209 ▲21 | 5.83 ▼0.05 | 99.41 ▼11.13 | 40.82 ▼3.66 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.04 ▼0.01 | 39.17 ▼6.21 | 34.69 ▼1.41 |
Add New Post /wp-admin/post-new.php | 1,533 ▲11 | 23.16 ▲0.03 | 657.58 ▲48.24 | 61.14 ▲4.64 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.15 ▼0.15 | 96.61 ▼2.15 | 42.89 ▼0.19 |
Cookie Manager /wp-admin/options-general.php?page=oras | 793 | 2.19 | 27.41 | 42.97 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- oras_option_name
- widget_recent-posts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× 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/online-results-cookie-manager/oras-cookie-consent.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: cookies, manage cookies, easy cookie consent, gpdr, cookie consent
online-results-cookie-manager/oras-cookie-consent.php 77% from 13 tests
The main PHP script in "Online-Results Cookie Manager" version 1.1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("online-results-cookie-manager.php" instead of "oras-cookie-consent.php")
- Description: The description should be shorter than 140 characters (currently 231 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected165 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 0 | 0 | 60 |
LESS | 1 | 13 | 1 | 59 |
PHP | 1 | 13 | 22 | 46 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
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 | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
oras-logo.png | 2.27KB | 1.42KB | ▼ 37.34% |