84% watchful

Code Review | Remote Website Management Plugin by Watchful

WordPress plugin Remote Website Management Plugin by Watchful scored84%from 54 tests.

About plugin

  • Plugin page: watchful
  • Plugin version: 1.7.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 22, 2019
  • Latest release: Oct 18, 2023
  • Number of updates: 101
  • Update frequency: every 14.2 days
  • Top authors: watchful (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

5,000+ active /93,445 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼8.59ms] Passed 4 tests

Server-side resources used by Remote Website Management Plugin by Watchful
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1247.35 ▲9.25
Dashboard /wp-admin3.47 ▲0.1252.47 ▼12.33
Posts /wp-admin/edit.php3.59 ▲0.2349.03 ▼5.90
Add New Post /wp-admin/post-new.php6.34 ▲0.4586.60 ▼17.71
Media Library /wp-admin/upload.php3.40 ▲0.1637.40 ▲1.57
Watchful /wp-admin/options-general.php?page=watchful-setting3.4033.80

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 71 new files
Database: no new tables, 7 new options
New WordPress options
watchfulSettings
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remote Website Management Plugin by Watchful
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.17 ▼0.071.70 ▼0.0944.83 ▲1.17
Dashboard /wp-admin2,202 ▲255.59 ▼0.0587.33 ▼12.9741.51 ▼10.55
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0333.67 ▼1.7332.86 ▼2.58
Add New Post /wp-admin/post-new.php1,529 ▲323.22 ▲0.27649.14 ▼36.7252.82 ▲2.27
Media Library /wp-admin/upload.php1,404 ▲44.16 ▼0.0592.05 ▼20.7140.37 ▼6.60
Watchful /wp-admin/options-general.php?page=watchful-setting8742.0023.7337.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 26× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Watchful\\Audit\\Audit' not found in wp-content/plugins/watchful/lib/Audit/Tests/HasWPHtaccess.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Watchful\\Audit\\Audit' not found in wp-content/plugins/watchful/lib/Audit/Tests/HasWPAdminUser.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Watchful\\Helpers\\BackupPlugins\\BackupPluginInterface' not found in wp-content/plugins/watchful/lib/Helpers/BackupPlugins/Ai1wmBackupPlugin.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Watchful\\Controller\\BaseControllerInterface' not found in wp-content/plugins/watchful/lib/Controller/Validation.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Watchful\\Helpers\\BackupPlugins\\BackupPluginInterface' not found in wp-content/plugins/watchful/lib/Helpers/BackupPlugins/AkeebaBackupPlugin.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Watchful\\Audit\\Audit' not found in wp-content/plugins/watchful/lib/Audit/Tests/IsUploadBrowsable.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Watchful\\Audit\\Audit' not found in wp-content/plugins/watchful/lib/Audit/Tests/HasConfigChmod.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Watchful\\Audit\\Audit' not found in wp-content/plugins/watchful/lib/Audit/Tests/HasDeactivatedPlugins.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Watchful\\Audit\\Audit' not found in wp-content/plugins/watchful/lib/Audit/Tests/HasDBPrefix.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Theme_Installer_Skin' not found in wp-content/plugins/watchful/lib/Skins/SkinThemeUpgrader.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: manage multiple sites, watchful, wordpress dashboard, wordpress manager, backup...

watchful/watchful.php Passed 13 tests

The entry point to "Remote Website Management Plugin by Watchful" version 1.7.0 is a PHP file that has certain tags in its header comment area
44 characters long description:
Remote Website Management Plugin by Watchful

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin4,314 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
PHP671,0742,2644,314

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.21
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces10
Interfaces3
Traits0
Classes60
▷ Abstract classes11.67%
▷ Concrete classes5998.33%
▷ Final classes00.00%
Methods260
▷ Static methods3413.08%
▷ Public methods18872.31%
▷ Protected methods103.85%
▷ Private methods6223.85%
Functions9
▷ Named functions111.11%
▷ Anonymous functions888.89%
Constants13
▷ Global constants538.46%
▷ Class constants861.54%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin