84% dismiss-wsod-protection

Code Review | Dismiss WSoD Protection

WordPress plugin Dismiss WSoD Protection scored84%from 54 tests.

About plugin

  • Plugin page: dismiss-wsod-prot...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-beta1-5.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2019
  • Latest release: Feb 12, 2019
  • Number of updates: 37
  • Update frequency: every 0.3 days
  • Top authors: Luciano Croce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /632 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Dismiss WSoD Protection
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.32 ▼0.84
Dashboard /wp-admin3.31 ▲0.0144.58 ▼0.83
Posts /wp-admin/edit.php3.36 ▲0.0049.49 ▲3.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.92 ▼0.08
Media Library /wp-admin/upload.php3.23 ▲0.0034.72 ▲4.44

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dismiss WSoD Protection
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.25 ▼1.131.65 ▼0.3738.75 ▼10.50
Dashboard /wp-admin2,209 ▲214.86 ▼0.02108.74 ▼5.4942.66 ▲3.36
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0040.33 ▲4.5934.89 ▼0.40
Add New Post /wp-admin/post-new.php1,514 ▼1917.62 ▼5.45612.22 ▼80.8454.97 ▼0.19
Media Library /wp-admin/upload.php1,388 ▼34.31 ▲0.1594.66 ▼4.8041.19 ▲0.35

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dismiss-wsod-protection/dismiss-wsod-protection.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: white-screen-of-death, dismiss-wsod-protection, luciano-croce, servehappy, disable-wsod-protection

dismiss-wsod-protection/dismiss-wsod-protection.php 85% from 13 tests

This is the main PHP file of "Dismiss WSoD Protection" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
  • Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "5.1-beta1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13185

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin