Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼296.08ms] Passed 4 tests
This is a short check of server-side resources used by Cookie Law Info Accepting By Scroll [Unmaintained]
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 55.66 ▲2.47 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.14 ▼1.53 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 36.17 ▼2.60 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.08 | 96.39 ▼1,173.49 |
Media Library /wp-admin/upload.php | 3.29 ▼0.01 | 24.19 ▼6.71 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cookie Law Info Accepting By Scroll [Unmaintained]
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,766 ▲12 | 15.92 ▲0.30 | 5.56 ▼0.61 | 2.32 ▼0.30 |
Dashboard /wp-admin | 2,895 ▲44 | 6.18 ▼0.03 | 115.43 ▼16.66 | 157.95 ▼1.45 |
Posts /wp-admin/edit.php | 2,694 ▲6 | 3.24 ▼0.00 | 63.79 ▼1.81 | 138.71 ▼5.43 |
Add New Post /wp-admin/post-new.php | 1,668 ▼84 | 18.09 ▼3.33 | 377.77 ▼57.83 | 160.30 ▲2.73 |
Media Library /wp-admin/upload.php | 1,698 ▼3 | 5.53 ▲0.07 | 138.17 ▼4.26 | 188.67 ▼3.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/cookie-law-info-accepting-by-scroll/main.php:14
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: cookielaw, scroll, cookie, cookie law, accept
cookie-law-info-accepting-by-scroll/main.php 92% from 13 tests
The primary PHP file in "Cookie Law Info Accepting By Scroll [Unmaintained]" version 1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cookie-law-info-accepting-by-scroll.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin136 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 26 | 22 | 82 |
PHP | 3 | 19 | 15 | 32 |
PO File | 1 | 240 | 480 | 21 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin