83% redux-developer-mode-disabler

Code Review | Redux Developer Mode Disabler

WordPress plugin Redux Developer Mode Disabler scored83%from 54 tests.

About plugin

  • Plugin page: redux-developer-m...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.3
  • WordPress version: 6.3.1
  • First release: Sep 23, 2014
  • Latest release: Jul 5, 2015
  • Number of updates: 5
  • Update frequency: every 59.4 days
  • Top authors: dovyp (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /34,904 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Redux Developer Mode Disabler
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.86 ▼2.55
Dashboard /wp-admin3.31 ▼0.0343.29 ▼17.75
Posts /wp-admin/edit.php3.36 ▲0.0146.13 ▲1.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.78 ▼21.51
Media Library /wp-admin/upload.php3.23 ▲0.0132.74 ▼2.06

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Redux Developer Mode Disabler
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.024.48 ▲2.9039.51 ▼2.79
Dashboard /wp-admin2,206 ▲185.86 ▲0.90100.58 ▼0.4241.80 ▼0.72
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0438.47 ▲2.6635.57 ▲2.05
Add New Post /wp-admin/post-new.php1,533 ▼123.24 ▲5.03669.25 ▲34.7650.41 ▼3.61
Media Library /wp-admin/upload.php1,388 ▲64.20 ▲0.0099.14 ▲0.7242.67 ▲0.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/redux-developer-mode-disabler/redux-disable-devmode.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (If you see this, then you're in developer mode. Install this plugin to rid yourself of those annoying messages. Oh, and install the Redux Framework plugin too.)
Please take inspiration from this readme.txt

redux-developer-mode-disabler/redux-disable-devmode.php 69% from 13 tests

Analyzing the main PHP file in "Redux Developer Mode Disabler" version 1.0.1
It is important to fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("/ReduxFramework/ReduxCore/languages")
  • Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("redux-developer-mode-disabler.php" instead of "redux-disable-devmode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected14 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP132210
Markdown1204

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin