Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.57ms] Passed 4 tests
Server-side resources used by Cookielander
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.32 ▲2.56 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.01 ▲1.60 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 41.92 ▼4.17 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 80.81 ▼14.18 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.26 ▼9.52 |
Cookielander /wp-admin/options-general.php?page=cookielander | 3.25 | 29.85 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Cookielander
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.63 ▼1.05 | 2.02 ▲0.32 | 43.93 ▲2.02 |
Dashboard /wp-admin | 2,229 ▲41 | 5.35 ▲0.30 | 128.16 ▲15.59 | 53.21 ▲10.02 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.48 ▲0.50 | 38.35 ▼2.13 | 35.20 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.54 ▲0.39 | 673.13 ▲70.38 | 55.85 ▼6.47 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.63 ▲0.42 | 98.82 ▼10.67 | 44.34 ▲0.55 |
Cookielander /wp-admin/options-general.php?page=cookielander | 902 | 2.47 | 49.37 | 37.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=cookielander
- > Notice in wp-content/plugins/cookielander/cookielander-options.php+119
Trying to access array offset on value of type bool
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cookielander/cookielander.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cookielander/cookielander-ui.php:1
- > PHP Fatal error
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 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
6 plugin tags: cookies, ppc, contact form, landing page, referral...
cookielander/cookielander.php Passed 13 tests
"Cookielander" version 0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
Save referral variables to temporary storage (cookies, session, etc)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin608 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 124 | 85 | 383 |
JavaScript | 2 | 91 | 89 | 225 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 23 | 88.46% |
▷ Protected methods | 3 | 11.54% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin