Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.36ms] Passed 4 tests
A check of server-side resources used by rankcookie
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 30.67 ▼9.86 |
Dashboard /wp-admin | 3.36 ▲0.06 | 54.18 ▲0.18 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 46.19 ▼12.82 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.64 ▼10.95 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.17 ▲0.94 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 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
An overview of browser requirements for rankcookie
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,073 ▲287 | 13.23 ▼1.07 | 2.99 ▲1.24 | 47.89 ▲4.39 |
Dashboard /wp-admin | 2,388 ▲185 | 4.86 ▼1.02 | 107.28 ▼3.90 | 43.06 ▲0.22 |
Posts /wp-admin/edit.php | 2,267 ▲167 | 2.10 ▲0.08 | 37.41 ▼0.29 | 32.71 ▼5.40 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.35 ▲5.97 | 661.19 ▲24.89 | 60.87 ▲11.84 |
Media Library /wp-admin/upload.php | 1,570 ▲167 | 4.24 ▼0.11 | 102.65 ▲0.57 | 44.62 ▼0.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- 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)
The smoke test was a success, however most plugin functionality was not tested
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rankcookie/settings/rankcookie-settings.php:90
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rankcookie/templates/cookie-banner.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rankcookie/templates/gtm-snippet.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
4 plugin tags: google tag manager, gtm, cookie banner, opt-in
rankcookie/rankcookie.php Passed 13 tests
The principal PHP file in "rankcookie" v. 1.0.1 is loaded by WordPress automatically on each request
89 characters long description:
This plugin provides a light weight cookie opt-in with support for the google tag manager
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
Everything looks great! No dangerous files found in this plugin690 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 59 | 91 | 255 |
JavaScript | 2 | 33 | 45 | 163 |
PO File | 1 | 40 | 41 | 141 |
CSS | 2 | 29 | 2 | 131 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 14 | |
▷ Named functions | 14 | 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
PNG images were not found in this plugin