83% dbd-fire-fighter

Code Review | DBD Fire Fighter

WordPress plugin DBD Fire Fighter scored83%from 54 tests.

About plugin

  • Plugin page: dbd-fire-fighter
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: May 23, 2013
  • Latest release: May 25, 2013
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: nirob.19 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /847 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.00MB] [CPU: ▼2.18ms] Passed 4 tests

Analyzing server-side resources used by DBD Fire Fighter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.35 ▼2.13
Dashboard /wp-admin3.31 ▲0.0046.81 ▼3.90
Posts /wp-admin/edit.php3.36 ▲0.0047.40 ▼2.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.22 ▼0.48
Media Library /wp-admin/upload.php3.23 ▲0.0035.35 ▲0.77

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

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

Browser metrics Passed 4 tests

DBD Fire Fighter: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲5513.21 ▼1.171.58 ▼0.1936.93 ▼9.78
Dashboard /wp-admin2,206 ▲155.78 ▲0.8996.65 ▼19.0941.88 ▼1.77
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0438.68 ▲0.7135.21 ▲0.86
Add New Post /wp-admin/post-new.php1,522 ▼1023.21 ▲0.05617.39 ▼53.0367.21 ▲11.31
Media Library /wp-admin/upload.php1,388 ▼04.13 ▼0.0795.53 ▼16.4142.42 ▼6.47

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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)
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dbd-fire-fighter/dbd_fire_fighter.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (DBD Fire Fighter activated), #2 (DBD Fire Fighter Iamge)
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

dbd-fire-fighter/dbd_fire_fighter.php 92% from 13 tests

Analyzing the main PHP file in "DBD Fire Fighter" version 1.0
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("dbd-fire-fighter.php" instead of "dbd_fire_fighter.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
Good job! No executable or dangerous file extensions detected6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1296

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin