Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.59MB] [CPU: ▼3.11ms] Passed 4 tests
An overview of server-side resources used by KolorWeb Log Manager: cleaver debugging management
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.53 | 44.15 ▼2.33 |
Dashboard /wp-admin | 3.92 ▲0.62 | 58.44 ▼1.27 |
Posts /wp-admin/edit.php | 3.97 ▲0.62 | 53.09 ▲1.01 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.64 | 91.99 ▼9.85 |
Media Library /wp-admin/upload.php | 3.84 ▲0.62 | 44.26 ▲5.21 |
Log Manager /wp-admin/tools.php?page=kw-log-manager | 3.75 | 37.18 |
Server storage [IO: ▲4.89MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- The plugin illegally modified 2 files (4.23KB) outside of "wp-content/plugins/kolorweb-log-manager/" and "wp-content/uploads/"
- (new file) wp-content/debug.log
- (modified) wp-config.php
Filesystem: 1,276 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for KolorWeb Log Manager: cleaver debugging management
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲112 | 13.97 ▼0.41 | 1.55 ▼0.46 | 31.46 ▼13.43 |
Dashboard /wp-admin | 2,279 ▲102 | 5.60 ▼0.01 | 112.80 ▲16.97 | 47.35 ▼0.10 |
Posts /wp-admin/edit.php | 2,145 ▲48 | 2.45 ▲0.44 | 44.27 ▲8.97 | 40.55 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 23.61 ▲0.44 | 619.14 ▼48.81 | 51.07 ▼5.54 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 5.01 ▲0.77 | 100.98 ▼1.27 | 44.57 ▲0.40 |
Log Manager /wp-admin/tools.php?page=kw-log-manager | 1,375 | 2.85 | 50.58 | 63.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/kolorweb-log-manager/vendor/phpspec/php-diff/example/example.php
- 647× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpSpec\\ObjectBehavior' not found in wp-content/plugins/kolorweb-log-manager/vendor/phpspec/phpspec/spec/PhpSpec/Wrapper/SubjectSpec.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/kolorweb-log-manager/vendor/phpdocumentor/reflection-docblock/tests/phpDocumentor/Reflection/DocBlock/Tag/UsesTagTest.php:23
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/kolorweb-log-manager/vendor/symfony/console/Tests/Input/InputArgumentTest.php:17
- > PHP Fatal error
Uncaught Error: Interface 'PhpSpec\\Matcher\\MatcherInterface' not found in wp-content/plugins/kolorweb-log-manager/vendor/phpspec/phpspec/src/PhpSpec/Matcher/ObjectStateMatcher.php:20
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Application' not found in wp-content/plugins/kolorweb-log-manager/vendor/symfony/console/Tests/Fixtures/DescriptorApplicationMbString.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/kolorweb-log-manager/vendor/symfony/yaml/Tests/DumperTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'PhpSpec\\ObjectBehavior' not found in wp-content/plugins/kolorweb-log-manager/vendor/phpspec/prophecy/spec/Prophecy/Prediction/CallPredictionSpec.php:8
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Exception\\AdapterFailureException' not found in wp-content/plugins/kolorweb-log-manager/vendor/symfony/finder/Exception/OperationNotPermitedException.php:21
- > PHP Fatal error
Uncaught Error: Interface 'PhpSpec\\Wrapper\\Subject\\Expectation\\ExpectationInterface' not found in wp-content/plugins/kolorweb-log-manager/vendor/phpspec/phpspec/src/PhpSpec/Wrapper/Subject/Expectation/Decorator.php:16
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Helper\\Helper' not found in wp-content/plugins/kolorweb-log-manager/vendor/symfony/console/Helper/QuestionHelper.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 25 tag instead of maximum 10
kolorweb-log-manager/kw-log-manager.php 85% from 13 tests
Analyzing the main PHP file in "KolorWeb Log Manager: cleaver debugging management" version 1.1.3
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kolorweb-log-manager.php" instead of "kw-log-manager.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/kolorweb-log-manager/vendor/symfony/console/Resources/bin/hiddeninput.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 901 | 14,510 | 27,354 | 64,432 |
Cucumber | 33 | 878 | 0 | 3,443 |
YAML | 29 | 164 | 89 | 3,317 |
JSON | 45 | 14 | 0 | 2,782 |
Markdown | 54 | 800 | 0 | 2,344 |
XML | 37 | 49 | 0 | 733 |
SVG | 1 | 0 | 0 | 640 |
PO File | 1 | 140 | 277 | 402 |
C | 1 | 52 | 8 | 223 |
HTML | 10 | 35 | 0 | 209 |
Ant | 4 | 15 | 0 | 99 |
CSS | 2 | 16 | 4 | 81 |
XSD | 1 | 9 | 0 | 81 |
reStructuredText | 3 | 32 | 24 | 45 |
m4 | 1 | 11 | 11 | 41 |
C/C++ Header | 1 | 12 | 8 | 40 |
make | 1 | 1 | 0 | 12 |
JavaScript | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
A short 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.23 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 175 | |
Interfaces | 64 | |
Traits | 5 | |
Classes | 838 | |
▷ Abstract classes | 26 | 3.10% |
▷ Concrete classes | 812 | 96.90% |
▷ Final classes | 11 | 1.35% |
Methods | 5,406 | |
▷ Static methods | 205 | 3.79% |
▷ Public methods | 4,698 | 86.90% |
▷ Protected methods | 352 | 6.51% |
▷ Private methods | 356 | 6.59% |
Functions | 434 | |
▷ Named functions | 109 | 25.12% |
▷ Anonymous functions | 325 | 74.88% |
Constants | 158 | |
▷ Global constants | 17 | 10.76% |
▷ Class constants | 141 | 89.24% |
▷ Public constants | 140 | 99.29% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/buymeacoffee3.png | 6.11KB | 2.69KB | ▼ 55.91% |
assets/images/buymeacoffee1.png | 5.49KB | 2.69KB | ▼ 50.97% |
assets/images/logo.png | 71.90KB | 19.23KB | ▼ 73.25% |
assets/images/buymeacoffee4.png | 4.72KB | 1.93KB | ▼ 59.20% |
assets/images/buymeacoffee2.png | 5.86KB | 2.68KB | ▼ 54.18% |