99% disable-errors-in-plugins

Code Review | Disable Errors in Plugins

WordPress plugin Disable Errors in Plugins scored 99% from 53 tests.

About plugin

  • Plugin page: disable-errors-in...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 5.8.1
  • First release: Jan 28, 2015
  • Latest release: Apr 11, 2016
  • Number of updates: 14
  • Update frequency: every 31.4 days
  • Top authors: tyxla (100%)

Code review

53 tests

User reviews

4 reviews

Install metrics

500+ active / 3,625 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Disable Errors in Plugins
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1234.83 ▲14.19
Dashboard /wp-admin3.06 ▲0.0138.45 ▼5.17
Posts /wp-admin/edit.php3.11 ▲0.0041.74 ▲0.23
Add New Post /wp-admin/post-new.php5.42 ▼0.0190.15 ▼1,024.12
Media Library /wp-admin/upload.php3.00 ▼0.0128.56 ▼3.62

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Errors in Plugins
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲12015.92 ▲0.419.61 ▲2.3249.27 ▲5.50
Dashboard /wp-admin2,959 ▲1066.14 ▲0.34132.26 ▲3.29106.14 ▲8.83
Posts /wp-admin/edit.php2,706 ▲32.69 ▼0.0077.57 ▲13.9194.16 ▼0.75
Add New Post /wp-admin/post-new.php2,036 ▲18517.99 ▲0.47361.02 ▼8.55109.61 ▲6.26
Media Library /wp-admin/upload.php1,790 ▲185.00 ▼0.00150.32 ▲4.21107.16 ▼12.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
The SRP test was a success

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

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: notice, disable, warning, hide, plugin...

disable-errors-in-plugins/000-disable-errors-in-plugins.php 85% from 13 tests

Analyzing the main PHP file in "Disable Errors in Plugins" version 1.0.4
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 ("disable-errors-in-plugins.php" instead of "000-disable-errors-in-plugins.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin29 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP184516
Markdown19013

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin