Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼6.76ms] Passed 4 tests
This is a short check of server-side resources used by Cookie Message
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.19 | 44.30 ▲0.84 |
Dashboard /wp-admin | 3.79 ▲0.16 | 52.60 ▼15.20 |
Posts /wp-admin/edit.php | 3.84 ▲0.16 | 55.78 ▲0.58 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.16 | 96.56 ▼13.24 |
Media Library /wp-admin/upload.php | 3.65 ▲0.16 | 39.76 ▲1.11 |
Cookie Message /wp-admin/options-general.php?page=cookie-message | 3.77 | 46.35 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cookie Message
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 13.84 ▼0.35 | 11.73 ▲9.83 | 42.50 ▼2.07 |
Dashboard /wp-admin | 2,199 ▲19 | 5.65 ▲0.05 | 94.60 ▲7.19 | 38.48 ▼1.32 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.00 ▼0.06 | 40.26 ▲0.52 | 34.34 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,562 ▲17 | 18.23 ▼4.98 | 638.88 ▼56.41 | 67.06 ▲17.98 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.26 ▲0.06 | 100.42 ▼3.41 | 41.52 ▼6.19 |
Cookie Message /wp-admin/options-general.php?page=cookie-message | 1,954 | 7.29 | 160.84 | 57.38 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookie-message/register-settings-api.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookie-message/register-settings-api.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cookie-message/settings-array.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: message, notice, cookies, cookie
cookie-message/cookie-message.php Passed 13 tests
"Cookie Message" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
37 characters long description:
Add a cookie message to your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,080 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 62 | 208 | 852 |
Sass | 1 | 21 | 0 | 131 |
JavaScript | 2 | 13 | 1 | 78 |
CSS | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
This is a very shot 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.56 |
Average class complexity | 87.50 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 147.00 |
Average method complexity | 5.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.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 | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin