Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.97MB] [CPU: ▼52.92ms] Passed 4 tests
An overview of server-side resources used by Rebel Cookies Notification
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.65 ▼33.85 |
Dashboard /wp-admin | 2.05 ▼1.30 | 6.57 ▼54.24 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.52 ▼37.04 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.61 ▼86.53 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.43 ▼24.03 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Rebel Cookies Notification
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.39 ▼0.80 | 2.12 ▲0.51 | 44.72 ▲1.11 |
Dashboard /wp-admin | 2,227 ▲39 | 4.89 ▼0.25 | 100.16 ▼22.31 | 78.48 ▲33.06 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 2.01 ▼0.02 | 36.14 ▼0.56 | 31.87 ▼2.82 |
Add New Post /wp-admin/post-new.php | 1,695 ▲181 | 24.78 ▲7.19 | 637.80 ▼45.98 | 28.98 ▼37.91 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.22 ▲0.05 | 95.42 ▼6.91 | 65.44 ▲20.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery_cookies_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/rebel-cookies-notification/options-page-wrapper.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rebel-cookies-notification/rebel-cookies-notification.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues 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 to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== rebel-cookies-notification ===
)
rebel-cookies-notification/rebel-cookies-notification.php Passed 13 tests
"Rebel Cookies Notification" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
93 characters long description:
This plugin was created by Rebel to notify users that cookies are being set but not mis-used.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected267 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 28 | 21 | 95 |
CSS | 1 | 20 | 1 | 92 |
PHP | 2 | 32 | 30 | 80 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
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 | 6 | |
▷ Named functions | 6 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/close_light-theme.png | 3.05KB | 0.34KB | ▼ 88.70% |
img/rebel_logo.png | 16.42KB | 7.55KB | ▼ 54.03% |
img/rebel_logo_icon_big.png | 1.59KB | 1.50KB | ▼ 5.11% |
img/rebel_logo_icon.png | 0.59KB | 0.53KB | ▼ 10.58% |
img/close.png | 3.04KB | 0.34KB | ▼ 88.64% |