94% safe-mode

Code Review | Safe Mode

WordPress plugin Safe Mode scored 94% from 53 tests.

About plugin

  • Plugin page: safe-mode
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.2
  • WordPress version: 5.8.1
  • First release: Oct 19, 2012
  • Latest release: Dec 20, 2018
  • Number of updates: 12
  • Update frequency: every 187.7 days
  • Top authors: wpkonsulent (100%)

Code review

53 tests

User reviews

5 reviews

Install metrics

300+ active / 6,128 total downloads


Plugin footprint Passed 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.02MB] [CPU: ▼285.08ms] Passed 4 tests

A check of server-side resources used by Safe Mode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1335.27 ▲15.57
Dashboard /wp-admin3.07 ▲0.0238.71 ▼5.97
Posts /wp-admin/edit.php3.13 ▲0.0240.30 ▼8.09
Add New Post /wp-admin/post-new.php5.44 ▲0.0191.16 ▼1,118.51
Media Library /wp-admin/upload.php3.02 ▲0.0129.14 ▼7.76

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please fix the following
  • Illegal file modification found: 1 file (0.00MB) outside of "wp-content/plugins/safe-mode/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/safe-mode-loader.php
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Safe Mode: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,673 ▲6716.28 ▲0.819.54 ▲1.6347.54 ▲2.91
Dashboard /wp-admin2,930 ▲805.95 ▼0.04139.37 ▲7.2696.98 ▼6.38
Posts /wp-admin/edit.php2,703 ▼02.68 ▼0.0260.98 ▼10.6387.26 ▼5.45
Add New Post /wp-admin/post-new.php1,653 ▼20018.65 ▼0.22348.59 ▼14.13105.59 ▲3.61
Media Library /wp-admin/upload.php1,775 ▲34.97 ▼0.03146.61 ▼8.32112.24 ▲2.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/safe-mode/safe-mode.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: recovery, error, safe mode, debug

safe-mode/safe-mode.php 92% from 13 tests

The main PHP script in "Safe Mode" version 1.1.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)

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 plugin87 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity10.50
▷ Minimum class complexity5.00
▷ Maximum class complexity16.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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