83% disable-everything

Code Review | Disable Everything

WordPress plugin Disable Everything scored83%from 54 tests.

About plugin

  • Plugin page: disable-everything
  • Plugin version: 0.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.3
  • WordPress version: 6.3.1
  • First release: Oct 4, 2021
  • Latest release: Oct 11, 2023
  • Number of updates: 17
  • Update frequency: every 43.5 days
  • Top authors: dessky (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

5,000+ active /14,694 total downloads

Benchmarks

Plugin footprint 83% from 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.03MB] [CPU: ▼11.43ms] 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 /3.48 ▲0.0234.27 ▼9.41
Dashboard /wp-admin3.35 ▲0.0043.89 ▼11.55
Posts /wp-admin/edit.php3.40 ▲0.0446.03 ▼6.75
Add New Post /wp-admin/post-new.php5.93 ▲0.0479.35 ▼18.02
Media Library /wp-admin/upload.php3.27 ▲0.0435.94 ▲1.89
Disable Everything /wp-admin/options-general.php?page=disable-everything3.2636.34

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

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 /2,793 ▲4714.37 ▲0.021.48 ▼0.1336.26 ▼0.64
Dashboard /wp-admin2,199 ▲225.61 ▲0.0185.22 ▼12.6934.60 ▼11.22
Posts /wp-admin/edit.php2,107 ▲41.98 ▲0.0237.93 ▲4.5336.03 ▲6.76
Add New Post /wp-admin/post-new.php1,531 ▲322.85 ▼0.26605.55 ▼66.8253.89 ▼20.26
Media Library /wp-admin/upload.php1,407 ▲74.16 ▼0.0493.97 ▼0.2241.55 ▲0.97
Disable Everything /wp-admin/options-general.php?page=disable-everything1,3522.3124.8539.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in disable-everything/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 45 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.4.1 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 plugin879 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2128191879

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.29
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%
Functions74
▷ Named functions5675.68%
▷ Anonymous functions1824.32%
Constants3
▷ Global constants3100.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