84% frontend-debugger

Code Review | Frontend Debugger

WordPress plugin Frontend Debugger scored84%from 54 tests.

About plugin

  • Plugin page: frontend-debugger
  • Plugin version: 0.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Mar 11, 2015
  • Latest release: Aug 29, 2015
  • Number of updates: 12
  • Update frequency: every 14.3 days
  • Top authors: szepe.viktor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,186 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Frontend Debugger
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1458.70 ▲11.24
Dashboard /wp-admin3.34 ▲0.0451.37 ▼6.08
Posts /wp-admin/edit.php3.39 ▲0.0353.15 ▼2.40
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.90 ▼5.48
Media Library /wp-admin/upload.php3.26 ▲0.0337.71 ▲0.01

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Frontend Debugger: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /9,696 ▲6,93515.50 ▲1.9745.07 ▲40.1337.12 ▼7.76
Dashboard /wp-admin2,198 ▲215.62 ▼0.0186.91 ▼18.8740.74 ▼5.20
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0238.60 ▼0.6635.31 ▼1.83
Add New Post /wp-admin/post-new.php1,526 ▼023.64 ▲0.48645.34 ▼75.0667.58 ▲12.48
Media Library /wp-admin/upload.php1,400 ▼04.15 ▲0.0395.73 ▼9.7244.48 ▼1.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > Break-in attempt detected
      frontend_debugger_template_direct_access /wp-content/plugins/frontend-debugger/template/frontend.php
    • > Break-in attempt detected
      frontend_debugger_direct_access /wp-content/plugins/frontend-debugger/frontend-debugger.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: debugging, debug, html, source, development...

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

The primary PHP file in "Frontend Debugger" version 0.9.0 is used by WordPress to initiate all plugin functionality
31 characters long description:
Display page source prettified.

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 plugin699 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP29660284
CSS488168248
JavaScript3269167

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin