10% remote-control-panel

Code Review | Remote Control Panel

WordPress plugin Remote Control Panel scored10%from 54 tests.

About plugin

  • Plugin page: remote-control-panel
  • Plugin version: 0.4.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9.1
  • WordPress version: 6.3.1
  • First release: Jan 26, 2014
  • Latest release: Jul 31, 2014
  • Number of updates: 31
  • Update frequency: every 16.3 days
  • Top authors: eriktorsner (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,102 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/remote-control-panel/remotecontrolpanel.php+145
    Undefined variable: add_filter

Server metrics [RAM: ▼1.67MB] [CPU: ▼57.71ms] Passed 4 tests

Server-side resources used by Remote Control Panel
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2244.87 ▲2.44
Dashboard /wp-admin2.27 ▼1.039.94 ▼42.89
Posts /wp-admin/edit.php2.27 ▼1.0910.22 ▼49.76
Add New Post /wp-admin/post-new.php2.27 ▼3.628.53 ▼107.10
Media Library /wp-admin/upload.php2.27 ▼0.968.80 ▼31.10
Remote Control Panel /wp-admin/options-general.php?page=remotecontrolpanel2.279.47

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
remotecontrolpanel-options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remote Control Panel
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.40 ▲0.051.56 ▼0.1441.14 ▼4.14
Dashboard /wp-admin2,204 ▲275.66 ▲0.0689.61 ▼2.1138.35 ▼6.94
Posts /wp-admin/edit.php2,106 ▲31.99 ▲0.0439.89 ▼4.2036.67 ▲0.11
Add New Post /wp-admin/post-new.php1,531 ▲523.48 ▲0.31639.08 ▲13.8760.73 ▲6.96
Media Library /wp-admin/upload.php1,406 ▲64.15 ▼0.0796.27 ▼15.8744.52 ▲3.37
Remote Control Panel /wp-admin/options-general.php?page=remotecontrolpanel8441.6822.8827.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/remote-control-panel/remotecontrolpanel.php+145
    Undefined variable: add_filter
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • remotecontrolpanel-options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=remotecontrolpanel
    • > Notice in wp-content/plugins/remote-control-panel/remotecontrolpanel.php+145
    Undefined variable: add_filter
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=remotecontrolpanel
    • > Notice in wp-content/plugins/remote-control-panel/remotecontrolpanel.php+834
    Trying to get property 'status' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=remotecontrolpanel
    • > Notice in wp-content/plugins/remote-control-panel/remotecontrolpanel.php+831
    Undefined variable: rval

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 take a closer look at the following
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'remotecontrolpanel' not found in wp-content/plugins/remote-control-panel/admin.php:25
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/theme.php' (include_path='.:/usr/share/php') in wp-content/plugins/remote-control-panel/remotecontrolpanel_themes.php on line 10
    • > PHP Warning
      require_once(ABSPATHwp-includes/update.php): failed to open stream: No such file or directory in wp-content/plugins/remote-control-panel/remotecontrolpanel_core.php on line 10
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-includes/update.php' (include_path='.:/usr/share/php') in wp-content/plugins/remote-control-panel/remotecontrolpanel_core.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'wpdb' not found in wp-content/plugins/remote-control-panel/lib/db.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/remote-control-panel/remotecontrolpanel_plugins.php on line 10
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/remote-control-panel/remotecontrolpanel_plugins.php on line 10
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/remote-control-panel/remotecontrolpanel_core.php on line 10
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/remote-control-panel/remotecontrolpanel_plugins.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'wpdb' not found in wp-content/plugins/remote-control-panel/lib/db.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: administration, backup, management, wordpress security, remote control...

remote-control-panel/remotecontrolpanel.php 92% from 13 tests

Analyzing the main PHP file in "Remote Control Panel" version 0.4.6
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("remote-control-panel.php" instead of "remotecontrolpanel.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
There were no executable files found in this plugin2,030 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP93774662,016
JavaScript10014

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity21.29
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods119
▷ Static methods108.40%
▷ Public methods9680.67%
▷ Protected methods86.72%
▷ Private methods1512.61%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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