84% bugfu-console-debugger

Code Review | BugFu Console Debugger

WordPress plugin BugFu Console Debugger scored84%from 54 tests.

About plugin

  • Plugin page: bugfu-console-deb...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.1
  • WordPress version: 6.3.1
  • First release: Aug 26, 2016
  • Latest release: Jan 17, 2023
  • Number of updates: 33
  • Update frequency: every 70.8 days
  • Top authors: fedeandri (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

400+ active /6,473 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.38ms] Passed 4 tests

This is a short check of server-side resources used by BugFu Console Debugger
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0349.13 ▲1.82
Dashboard /wp-admin3.33 ▲0.0353.41 ▼5.94
Posts /wp-admin/edit.php3.44 ▲0.0945.85 ▼4.41
Add New Post /wp-admin/post-new.php5.93 ▲0.04107.09 ▼4.52
Media Library /wp-admin/upload.php3.25 ▲0.0240.24 ▲1.37
BugFu /wp-admin/tools.php?page=bugfu-console-debugger3.2636.11

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
bugfu_plugin_version
bugfu_debug_log
bugfu_debug_status
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for BugFu Console Debugger
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲15013.53 ▼0.7613.82 ▲12.0549.86 ▲6.11
Dashboard /wp-admin2,219 ▲395.70 ▲0.0597.90 ▼19.1339.66 ▼7.79
Posts /wp-admin/edit.php2,121 ▲242.04 ▲0.0544.06 ▲4.5937.59 ▼0.04
Add New Post /wp-admin/post-new.php1,539 ▲823.63 ▲0.52673.83 ▼76.6752.01 ▼17.02
Media Library /wp-admin/upload.php1,421 ▲214.26 ▲0.04112.23 ▼20.3553.39 ▼13.67
BugFu /wp-admin/tools.php?page=bugfu-console-debugger9462.0534.3556.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • bugfu_plugin_version
    • widget_recent-posts
    • bugfu_debug_log
    • bugfu_debug_status
    • can_compress_scripts
    • db_upgraded

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/bugfu-console-debugger/views/settings-page.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (The admin page when BugFu is ON), #2 (The Browser JavaScript Console when BugFu is ON), #3 (The admin page when BugFu is OFF)
Please take inspiration from this readme.txt

bugfu-console-debugger/bugfu-console-debugger.php Passed 13 tests

The main file in "BugFu Console Debugger" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
91 characters long description:
Log/Debug the PHP code in your Theme/Plugin with your Browser Console *no extension needed*

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin332 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP39623227
CSS111067
JavaScript117038

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods422.22%
▷ Public methods1161.11%
▷ Protected methods00.00%
▷ Private methods738.89%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin