89% change-debug-log-location

Code Review | Change Debug Log Location

WordPress plugin Change Debug Log Location scored89%from 54 tests.

About plugin

  • Plugin page: change-debug-log-...
  • Plugin version: 0.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Feb 25, 2021
  • Latest release: Nov 1, 2023
  • Number of updates: 21
  • Update frequency: every 46.6 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /957 total downloads


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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.39ms] Passed 4 tests

This is a short check of server-side resources used by Change Debug Log Location
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0149.00 ▲9.08
Dashboard /wp-admin3.32 ▼0.0344.84 ▼23.68
Posts /wp-admin/edit.php3.37 ▲0.0150.86 ▲0.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.58 ▼3.59
Media Library /wp-admin/upload.php3.24 ▲0.0137.44 ▲1.16

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • Illegal file modification detected: 1 file (4.17KB) outside of "wp-content/plugins/change-debug-log-location/" and "wp-content/uploads/"
    • (modified) wp-config.php
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Change Debug Log Location
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.17 ▼0.191.94 ▼0.1137.31 ▼5.68
Dashboard /wp-admin2,195 ▲245.57 ▼0.0992.43 ▼8.7443.28 ▼13.83
Posts /wp-admin/edit.php2,100 ▼32.13 ▲0.1241.73 ▲6.4936.56 ▼0.32
Add New Post /wp-admin/post-new.php1,526 ▼023.46 ▼0.11657.16 ▲53.9156.32 ▲5.31
Media Library /wp-admin/upload.php1,403 ▲94.18 ▼0.0797.28 ▼3.0641.71 ▲0.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: it changes the title and the location of the file debuglog

change-debug-log-location/change-debug-log-location.php 92% from 13 tests

The principal PHP file in "Change Debug Log Location" v. 0.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin80 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin