83% debug-me

Code Review | DebugMe

WordPress plugin DebugMe scored83%from 54 tests.

About plugin

  • Plugin page: debug-me
  • Plugin version: 0.4.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 14, 2022
  • Latest release: Jun 10, 2023
  • Number of updates: 13
  • Update frequency: every 18.4 days
  • Top authors: lysyiweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /316 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼3.37ms] Passed 4 tests

Server-side resources used by DebugMe
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1641.30 ▲0.18
Dashboard /wp-admin3.46 ▲0.1248.37 ▼12.37
Posts /wp-admin/edit.php3.58 ▲0.2245.67 ▲1.42
Add New Post /wp-admin/post-new.php6.04 ▲0.1687.38 ▼2.52
Media Library /wp-admin/upload.php3.39 ▲0.1635.49 ▲1.24
Server info /wp-admin/admin.php?page=debug-me-server-info3.6137.32
Log viewer /wp-admin/admin.php?page=debug-me-log-viewer3.3632.29

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

DebugMe: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.20 ▼1.111.70 ▼0.0844.34 ▲1.19
Dashboard /wp-admin2,237 ▲524.86 ▼0.09106.64 ▼29.8873.61 ▲24.46
Posts /wp-admin/edit.php2,123 ▲311.99 ▼0.0537.45 ▼2.7036.01 ▲5.62
Add New Post /wp-admin/post-new.php1,691 ▲17022.32 ▼0.86726.86 ▲116.2250.94 ▲1.89
Media Library /wp-admin/upload.php1,410 ▲224.22 ▲0.05102.56 ▼0.8374.39 ▲31.51
Server info /wp-admin/admin.php?page=debug-me-server-info9,3074.02105.28178.33
Log viewer /wp-admin/admin.php?page=debug-me-log-viewer1,1182.7148.3453.72

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/debug-me/views/header.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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 reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt might help

debug-me/index.php 85% from 13 tests

This is the main PHP file of "DebugMe" version 0.4.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("debug-me.php" instead of "index.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 Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin4,307 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
JSON2002,313
PHP1116473746
CSS112931521
JavaScript107945409
Sass7503278
SVG21027
PO File10213

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity15.50
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods37
▷ Static methods3697.30%
▷ Public methods3183.78%
▷ Protected methods616.22%
▷ Private methods00.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 compressed PNG files occupy 0.82MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/vendor/images/sort_both.png0.20KB0.29KB0.00%
assets/vendor/images/sort_desc.png0.15KB0.25KB0.00%
assets/img/logo.png3.69KB3.58KB▼ 2.86%
assets/img/main-logo.png3.67KB3.57KB▼ 2.82%
assets/vendor/images/sort_asc.png0.16KB0.25KB0.00%