Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.21ms] Passed 4 tests
Analyzing server-side resources used by MT Cookie Consent
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.41 ▲0.17 |
Dashboard /wp-admin | 3.37 ▲0.07 | 47.46 ▼2.63 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 42.70 ▼0.68 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 91.19 ▼6.77 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.36 ▼2.77 |
MT Cookie Consent /wp-admin/options-general.php?page=jquery-cookie-law | 3.28 | 37.34 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
MT Cookie Consent: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲127 | 13.81 ▼0.58 | 6.26 ▲4.36 | 47.56 ▲3.80 |
Dashboard /wp-admin | 2,229 ▲40 | 4.98 ▲0.05 | 99.48 ▼21.91 | 38.84 ▼7.55 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.32 ▲0.28 | 37.36 ▲1.43 | 33.32 ▲0.78 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 23.50 ▲0.39 | 598.66 ▼131.38 | 35.96 ▼18.73 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.50 ▲0.32 | 96.07 ▼2.26 | 41.90 ▼0.22 |
MT Cookie Consent /wp-admin/options-general.php?page=jquery-cookie-law | 1,535 | 2.77 | 56.52 | 30.71 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- 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
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jquery-cookie-law/jquery-cookie-law.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Screenshot #1 (The Cookies Bar) image missing
jquery-cookie-law/jquery-cookie-law.php Passed 13 tests
Analyzing the main PHP file in "MT Cookie Consent" version 3.0.7
50 characters long description:
This plugin add the javascript code for Cookie Law
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected283 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 33 | 11 | 268 |
JavaScript | 2 | 2 | 1 | 9 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
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 | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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