94% disable-everything

Code Review | Disable Everything

WordPress plugin Disable Everything scored 94% from 54 tests.

About plugin

  • Plugin page: disable-everything
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.8.1
  • WordPress version: 5.8.1
  • First release: Oct 4, 2021
  • Latest release: Oct 25, 2021
  • Number of updates: 3
  • Update frequency: every 8.0 days
  • Top authors: dessky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 89 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼139.12ms] Passed 4 tests

An overview of server-side resources used by Disable Everything
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.97 ▲0.1343.04 ▲9.74
Dashboard /wp-admin3.21 ▲0.1648.32 ▼0.02
Posts /wp-admin/edit.php3.33 ▲0.2242.06 ▼3.71
Add New Post /wp-admin/post-new.php5.57 ▲0.1493.32 ▼554.09
Media Library /wp-admin/upload.php3.16 ▲0.1634.56 ▲1.34
Disable Everything /wp-admin/options-general.php?page=disable-everything3.1137.78

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Disable Everything
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.83 ▲0.299.91 ▼1.4750.52 ▲1.13
Dashboard /wp-admin2,969 ▲385.88 ▼0.07185.19 ▲23.09114.10 ▼0.97
Posts /wp-admin/edit.php2,744 ▲52.70 ▼0.0269.15 ▼3.7279.43 ▼11.51
Add New Post /wp-admin/post-new.php1,597 ▼8618.81 ▲0.10410.48 ▼13.39107.01 ▼2.96
Media Library /wp-admin/upload.php1,812 ▲55.03 ▼0.02163.82 ▲8.54120.11 ▲7.45
Disable Everything /wp-admin/options-general.php?page=disable-everything1,5682.0960.27104.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/disable-everything/disable-everything.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
The official readme.txt might help

disable-everything/disable-everything.php 92% from 13 tests

The main PHP script in "Disable Everything" version 0.2.0 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin671 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4273.68%
▷ Anonymous functions1526.32%
▷ Global constants1100.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
There are no PNG files in this plugin