84% fastcgi-finish-request-on-shutdown

Code Review | fastcgi_finish_request

WordPress plugin fastcgi_finish_request scored 84% from 54 tests.

About plugin

  • Plugin page: fastcgi-finish-re...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.5
  • WordPress version: 6.3.1
  • First release: May 5, 2016
  • Latest release: May 5, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: AJenbo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,127 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.92ms] Passed 4 tests

An overview of server-side resources used by fastcgi_finish_request
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.45 ▼4.96
Dashboard /wp-admin3.31 ▲0.0046.63 ▼0.55
Posts /wp-admin/edit.php3.36 ▲0.0042.46 ▼7.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.80 ▼18.50
Media Library /wp-admin/upload.php3.23 ▲0.0035.86 ▲0.38

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

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

Browser metrics Passed 4 tests

Checking browser requirements for fastcgi_finish_request
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.33 ▼1.051.86 ▼0.2043.24 ▲0.27
Dashboard /wp-admin2,203 ▲155.83 ▲0.9497.50 ▼19.4535.19 ▼7.08
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0534.06 ▼1.4132.51 ▼0.42
Add New Post /wp-admin/post-new.php1,533 ▼023.44 ▲0.15671.72 ▲15.2764.52 ▲13.03
Media Library /wp-admin/upload.php1,391 ▲94.18 ▼0.0396.85 ▼11.6243.76 ▼5.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fastcgi-finish-request-on-shutdown/fastcgi-finish-request.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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === fastcgi-finish-request-on-shutdown === )
The official readme.txt is a good inspiration

fastcgi-finish-request-on-shutdown/fastcgi-finish-request.php 92% from 13 tests

The entry point to "fastcgi_finish_request" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fastcgi-finish-request-on-shutdown.php" instead of "fastcgi-finish-request.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 detected10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121310

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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 functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin