67% kolorweb-log-manager

Code Review | KolorWeb Log Manager: cleaver debugging management

WordPress plugin KolorWeb Log Manager: cleaver debugging management scored67%from 54 tests.

About plugin

  • Plugin page: kolorweb-log-manager
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.3.2
  • WordPress version: 6.3.1
  • First release: Mar 11, 2022
  • Latest release: Oct 13, 2023
  • Number of updates: 18
  • Update frequency: every 32.3 days
  • Top authors: vincent06 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /822 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5344.15 ▼2.33
Dashboard /wp-admin3.92 ▲0.6258.44 ▼1.27
Posts /wp-admin/edit.php3.97 ▲0.6253.09 ▲1.01
Add New Post /wp-admin/post-new.php6.52 ▲0.6491.99 ▼9.85
Media Library /wp-admin/upload.php3.84 ▲0.6244.26 ▲5.21
Log Manager /wp-admin/tools.php?page=kw-log-manager3.7537.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲11213.97 ▼0.411.55 ▼0.4631.46 ▼13.43
Dashboard /wp-admin2,279 ▲1025.60 ▼0.01112.80 ▲16.9747.35 ▼0.10
Posts /wp-admin/edit.php2,145 ▲482.45 ▲0.4444.27 ▲8.9740.55 ▲3.25
Add New Post /wp-admin/post-new.php1,550 ▲1723.61 ▲0.44619.14 ▼48.8151.07 ▼5.54
Media Library /wp-admin/upload.php1,436 ▲365.01 ▲0.77100.98 ▼1.2744.57 ▲0.40
Log Manager /wp-admin/tools.php?page=kw-log-manager1,3752.8550.5863.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

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
Please take inspiration from this readme.txt

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
78,933 lines of code in 1,126 files:
LanguageFilesBlank linesComment linesLines of code
PHP90114,51027,35464,432
Cucumber3387803,443
YAML29164893,317
JSON451402,782
Markdown5480002,344
XML37490733
SVG100640
PO File1140277402
C1528223
HTML10350209
Ant415099
CSS216481
XSD19081
reStructuredText3322445
m41111141
C/C++ Header112840
make11012
JavaScript1009

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 code0.23
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces175
Interfaces64
Traits5
Classes838
▷ Abstract classes263.10%
▷ Concrete classes81296.90%
▷ Final classes111.35%
Methods5,406
▷ Static methods2053.79%
▷ Public methods4,69886.90%
▷ Protected methods3526.51%
▷ Private methods3566.59%
Functions434
▷ Named functions10925.12%
▷ Anonymous functions32574.88%
Constants158
▷ Global constants1710.76%
▷ Class constants14189.24%
▷ Public constants14099.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
FileSize - originalSize - compressedSavings
assets/images/buymeacoffee3.png6.11KB2.69KB▼ 55.91%
assets/images/buymeacoffee1.png5.49KB2.69KB▼ 50.97%
assets/images/logo.png71.90KB19.23KB▼ 73.25%
assets/images/buymeacoffee4.png4.72KB1.93KB▼ 59.20%
assets/images/buymeacoffee2.png5.86KB2.68KB▼ 54.18%