84% disable-site

Code Review | Disable Site

WordPress plugin Disable Site scored84%from 54 tests.

About plugin

  • Plugin page: disable-site
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 25, 2014
  • Latest release: Dec 30, 2014
  • Number of updates: 21
  • Update frequency: every 16.2 days
  • Top authors: jklatt86 (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

6,000+ active /102,502 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼11.53ms] Passed 4 tests

Analyzing server-side resources used by Disable Site
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.49 ▼5.81
Dashboard /wp-admin3.42 ▲0.0848.67 ▼14.78
Posts /wp-admin/edit.php3.52 ▲0.1651.25 ▼1.18
Add New Post /wp-admin/post-new.php6.11 ▲0.2381.33 ▼22.03
Media Library /wp-admin/upload.php3.36 ▲0.1336.18 ▼3.51

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Disable Site
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.36 ▼0.361.80 ▲0.0445.98 ▲1.69
Dashboard /wp-admin2,208 ▲315.62 ▲0.0294.08 ▼3.4843.02 ▲0.71
Posts /wp-admin/edit.php2,119 ▲192.05 ▲0.0536.15 ▼5.6736.21 ▼4.38
Add New Post /wp-admin/post-new.php1,539 ▲1023.53 ▲0.06654.97 ▲8.1357.99 ▲6.79
Media Library /wp-admin/upload.php1,416 ▲164.22 ▲0.06100.08 ▲5.1641.86 ▼3.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/disable-site/ilmds.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: coming soon, maintenance, disable site, splash page, temporary

disable-site/ilmds.php 85% from 13 tests

The main PHP file in "Disable Site" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 259 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("disable-site.php" instead of "ilmds.php")

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
No dangerous file extensions were detected370 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1141181370

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected