89% disable-fatal-error-handler

Code Review | Disable Fatal Error Handler

WordPress plugin Disable Fatal Error Handler scored89%from 54 tests.

About plugin

  • Plugin page: disable-fatal-err...
  • Plugin version: 0.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Feb 23, 2021
  • Latest release: Nov 1, 2023
  • Number of updates: 18
  • Update frequency: every 54.5 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,082 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by Disable Fatal Error Handler
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.19 ▼3.77
Dashboard /wp-admin3.31 ▲0.0048.51 ▲0.36
Posts /wp-admin/edit.php3.36 ▲0.0045.93 ▼2.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.67 ▼6.52
Media Library /wp-admin/upload.php3.23 ▼0.0036.56 ▼0.09

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
These are issues you should consider
  • Illegal file modification found: 1 file (4.23KB) outside of "wp-content/plugins/disable-fatal-error-handler/" and "wp-content/uploads/"
    • (modified) wp-config.php
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Disable Fatal Error Handler
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.191.80 ▲0.0144.63 ▲0.02
Dashboard /wp-admin2,195 ▲175.57 ▼0.3086.17 ▼27.1139.65 ▼2.00
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0235.19 ▲2.0332.11 ▼4.60
Add New Post /wp-admin/post-new.php1,528 ▲223.26 ▲0.05683.14 ▲6.2851.44 ▼9.62
Media Library /wp-admin/upload.php1,394 ▼34.16 ▼0.0696.58 ▼23.3642.47 ▼7.62

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Invalid URI ("buymeacoffee.com/josem")
The official readme.txt is a good inspiration

disable-fatal-error-handler/disable-fatal-error-handler.php 92% from 13 tests

Analyzing the main PHP file in "Disable Fatal Error Handler" version 0.0.4
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin78 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP352478

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin