84% g-debugger

Code Review | G Debugger

WordPress plugin G Debugger scored 84% from 54 tests.

About plugin

  • Plugin page: g-debugger
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0
  • WordPress version: 6.3.1
  • First release: Jan 22, 2019
  • Latest release: Jan 22, 2019
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: aduth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,452 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by G Debugger
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.09 ▼5.30
Dashboard /wp-admin3.31 ▲0.0046.16 ▼3.70
Posts /wp-admin/edit.php3.36 ▲0.0047.55 ▼3.03
Add New Post /wp-admin/post-new.php5.85 ▼0.0393.62 ▼6.92
Media Library /wp-admin/upload.php3.23 ▲0.0042.02 ▲9.11

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for G Debugger
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.73 ▲0.341.69 ▼0.7643.55 ▼0.45
Dashboard /wp-admin2,206 ▲154.88 ▼0.04107.43 ▲7.9042.89 ▼2.24
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0138.79 ▲3.1433.33 ▲0.69
Add New Post /wp-admin/post-new.php1,682 ▲16822.40 ▲4.51613.44 ▼49.3153.36 ▲3.48
Media Library /wp-admin/upload.php1,382 ▼94.27 ▲0.0299.19 ▲1.4041.19 ▼0.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-debugger/g-debugger.php:66

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: blocks, debugger, devtools, gutenberg, debugging

g-debugger/g-debugger.php Passed 13 tests

"G Debugger" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
45 characters long description:
Visual debugging tools for block development.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin94 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JSON10055
PHP182137
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
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 functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin