77% remove-n-disable

Code Review | Remove_n_Disable

WordPress plugin Remove_n_Disable scored77%from 54 tests.

About plugin

  • Plugin page: remove-n-disable
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Feb 8, 2013
  • Latest release: Feb 8, 2013
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: KF Elahi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,901 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.01ms] Passed 4 tests

Analyzing server-side resources used by Remove_n_Disable
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0236.15 ▼6.79
Dashboard /wp-admin3.36 ▲0.0247.61 ▼4.61
Posts /wp-admin/edit.php3.41 ▲0.0251.15 ▲1.75
Add New Post /wp-admin/post-new.php5.94 ▲0.0295.09 ▼10.37
Media Library /wp-admin/upload.php3.28 ▲0.0236.25 ▲2.31
R_n_D /wp-admin/options-general.php?page=r_n_d_slug3.2231.22

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
c_box
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Remove_n_Disable
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.23 ▼1.381.55 ▼0.4739.31 ▼7.54
Dashboard /wp-admin2,210 ▲225.78 ▲0.89105.73 ▼12.4136.94 ▼4.92
Posts /wp-admin/edit.php2,093 ▲72.00 ▼0.0439.27 ▲2.0835.13 ▲1.03
Add New Post /wp-admin/post-new.php1,540 ▲723.27 ▲0.14663.16 ▲8.3957.60 ▼3.56
Media Library /wp-admin/upload.php1,395 ▲134.23 ▲0.0896.48 ▲0.7343.63 ▲2.30
R_n_D /wp-admin/options-general.php?page=r_n_d_slug8442.0623.9826.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • c_box
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=r_n_d_slug
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=r_n_d_slug
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/remove-n-disable/index.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: Add an image for screenshot #1 (Example 1: Settings Page)
The official readme.txt might help

remove-n-disable/index.php 85% from 13 tests

The main PHP file in "Remove_n_Disable" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 214 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("remove-n-disable.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin156 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15213156

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions7
▷ Named functions7100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
Screenshot-1.png25.71KB9.61KB▼ 62.63%