90% fg-debug-bar-rewrite-rules

Code Review | Debug Bar Rewrite Rules

WordPress plugin Debug Bar Rewrite Rules scored90%from 54 tests.

About plugin

  • Plugin page: fg-debug-bar-rewr...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.0
  • WordPress version: 6.3.1
  • First release: Jan 12, 2014
  • Latest release: Dec 8, 2018
  • Number of updates: 10
  • Update frequency: every 179.1 days
  • Top authors: Kerfred (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /8,753 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
Install script ran successfully

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

This is a short check of server-side resources used by Debug Bar Rewrite Rules
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.50 ▼1.24
Dashboard /wp-admin3.31 ▲0.0142.81 ▼10.37
Posts /wp-admin/edit.php3.36 ▲0.0148.34 ▼0.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.89 ▼6.37
Media Library /wp-admin/upload.php3.23 ▲0.0133.01 ▼4.12

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Debug Bar Rewrite Rules
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.031.80 ▲0.0644.74 ▲1.01
Dashboard /wp-admin2,206 ▲154.88 ▼0.03112.01 ▲1.9737.41 ▼7.91
Posts /wp-admin/edit.php2,089 ▲32.03 ▼0.0333.34 ▼7.4034.61 ▼2.44
Add New Post /wp-admin/post-new.php1,542 ▼018.19 ▲0.24629.72 ▲30.6153.97 ▲3.75
Media Library /wp-admin/upload.php1,391 ▲34.15 ▼0.0399.77 ▼0.1942.89 ▼0.19

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: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: debug bar, rewrite rules

fg-debug-bar-rewrite-rules/debug-bar-rewrite-rules.php 92% from 13 tests

"Debug Bar Rewrite Rules" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fg-debug-bar-rewrite-rules.php" instead of "debug-bar-rewrite-rules.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected41 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP27834
CSS1007

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin