Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/console-log-cloaking/class/console_log_cloaking/console_log_cloaking.php+50
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.90MB] [CPU: ▼53.04ms] Passed 4 tests
This is a short check of server-side resources used by Console Log Cloaking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.81 ▼34.28 |
Dashboard /wp-admin | 2.11 ▼1.23 | 7.25 ▼48.13 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 5.66 ▼39.06 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 7.20 ▼90.68 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 6.90 ▼25.12 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Console Log Cloaking
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.28 ▼0.08 | 1.57 ▲0.12 | 40.15 ▲1.38 |
Dashboard /wp-admin | 2,215 ▲40 | 5.54 ▼0.20 | 82.83 ▼17.83 | 39.87 ▼4.51 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.00 ▼0.03 | 35.03 ▼1.11 | 34.50 ▲1.12 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.39 ▲0.31 | 690.14 ▲17.47 | 53.19 ▼2.63 |
Media Library /wp-admin/upload.php | 1,414 ▲17 | 4.14 ▼0.03 | 96.86 ▼5.61 | 41.33 ▼4.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/console-log-cloaking/class/console_log_cloaking/console_log_cloaking.php+50
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== Console Log Cloaking===
)
console-log-cloaking/console_log_cloaking.php 92% from 13 tests
"Console Log Cloaking" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("console-log-cloaking.php" instead of "console_log_cloaking.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin274 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 19 | 57 | 240 |
JavaScript | 1 | 5 | 0 | 22 |
CSS | 1 | 2 | 1 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 75.00% |
▷ Protected methods | 1 | 6.25% |
▷ Private methods | 3 | 18.75% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin