84% wpremote

Code Review | The WP Remote WordPress Plugin

WordPress plugin The WP Remote WordPress Plugin scored84%from 54 tests.

About plugin

  • Plugin page: wpremote
  • Plugin version: 5.42
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 10, 2010
  • Latest release: Dec 1, 2023
  • Number of updates: 210
  • Update frequency: every 23.4 days
  • Top authors: willmot (34.76%)ritesh.soni36 (30.95%)jeramynirodha (11.43%)joehoyle (9.05%)danielbachhuber (6.67%)

Code review

54 tests

User reviews

46 reviews

Install metrics

30,000+ active /1,352,163 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼2.63ms] Passed 4 tests

Server-side resources used by The WP Remote WordPress Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2237.85 ▼5.29
Dashboard /wp-admin3.57 ▲0.2247.04 ▼16.19
Posts /wp-admin/edit.php3.62 ▲0.2652.01 ▲4.87
Add New Post /wp-admin/post-new.php6.09 ▲0.2097.88 ▲14.63
Media Library /wp-admin/upload.php3.43 ▲0.1941.00 ▲6.10

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by The WP Remote WordPress Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6314.34 ▼0.371.57 ▼0.3534.54 ▼13.21
Dashboard /wp-admin2,219 ▲425.55 ▼0.0592.38 ▼11.0885.68 ▲42.65
Posts /wp-admin/edit.php2,121 ▲212.08 ▲0.1339.42 ▼1.0932.01 ▼4.72
Add New Post /wp-admin/post-new.php1,693 ▲16722.35 ▼0.79672.71 ▲17.4653.23 ▼5.31
Media Library /wp-admin/upload.php1,418 ▲154.07 ▼0.1398.07 ▼0.9461.99 ▲21.48

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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)
Good news, no errors were detected

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
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WPRAccount' not found in wp-content/plugins/wpremote/admin/components/list_accounts.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wpremote/admin/components/form.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wpremote/admin/components/header_top.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wpremote/admin/components/features_list.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpremote/maintenance/template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wpremote/admin/components/header_top.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wpremote/admin/components/header_top.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wpremote/admin/components/footer.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wpremote/admin/components/testimony.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: wordpress backup, backup, remote administration, multiple wordpress, wpremote

wpremote/plugin.php 92% from 13 tests

The main file in "The WP Remote WordPress Plugin" v. 5.42 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpremote.php" instead of "plugin.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
Everything looks great! No dangerous files found in this plugin11,383 lines of code in 70 files:
LanguageFilesBlank linesComment linesLines of code
PHP661,79211910,697
SVG201684
CSS2062

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity32.18
▷ Minimum class complexity1.00
▷ Maximum class complexity248.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits5
Classes50
▷ Abstract classes00.00%
▷ Concrete classes50100.00%
▷ Final classes00.00%
Methods804
▷ Static methods769.45%
▷ Public methods60074.63%
▷ Protected methods00.00%
▷ Private methods20425.37%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants123
▷ Global constants32.44%
▷ Class constants12097.56%
▷ Public constants120100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon.png0.34KB0.31KB▼ 10.29%
img/gowp_new.png4.65KB2.58KB▼ 44.61%
img/maintainn.png3.62KB1.99KB▼ 45.07%
img/sitecare.png3.43KB2.10KB▼ 38.95%
img/valet.png4.80KB2.18KB▼ 54.55%