84% debug-log

Code Review | Debug Log

WordPress plugin Debug Log scored84%from 54 tests.

About plugin

  • Plugin page: debug-log
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-4.5
  • WordPress version: 6.3.1
  • First release: Apr 5, 2016
  • Latest release: May 2, 2016
  • Number of updates: 15
  • Update frequency: every 1.7 days
  • Top authors: andrewklimek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,775 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.40ms] Passed 4 tests

Analyzing server-side resources used by Debug Log
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.57 ▼5.45
Dashboard /wp-admin3.32 ▼0.0253.23 ▼12.76
Posts /wp-admin/edit.php3.37 ▲0.0252.68 ▼4.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0297.21 ▼4.77
Media Library /wp-admin/upload.php3.24 ▲0.0241.03 ▼6.63
Debug Log /wp-admin/tools.php?page=debug_log3.2235.61

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Debug Log: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.28 ▼0.301.87 ▼0.3243.62 ▲1.85
Dashboard /wp-admin2,199 ▲225.54 ▼0.0490.75 ▲1.8642.04 ▲2.76
Posts /wp-admin/edit.php2,107 ▲72.01 ▲0.0440.27 ▼0.0739.00 ▼1.83
Add New Post /wp-admin/post-new.php1,529 ▲322.93 ▼0.14594.07 ▼98.9061.24 ▼7.18
Media Library /wp-admin/upload.php1,407 ▲104.22 ▲0.08100.44 ▼0.6245.25 ▼2.39
Debug Log /wp-admin/tools.php?page=debug_log7891.9924.2827.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debug-log/debug-log.php:115

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: error, log, debug

debug-log/debug-log.php Passed 13 tests

The main PHP script in "Debug Log" version 0.3 is automatically included on every request by WordPress
79 characters long description:
View and Delete the debug log from the Tools menu. Extremely light and simple.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin77 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1191977

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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