74% website-file-changes-monitor

Code Review | Website File Changes Monitor

WordPress plugin Website File Changes Monitor scored74%from 54 tests.

About plugin

  • Plugin page: website-file-chan...
  • Plugin version: 1.9.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: May 2, 2019
  • Latest release: Nov 7, 2023
  • Number of updates: 71
  • Update frequency: every 23.3 days
  • Top authors: WPWhiteSecurity (97.18%)robert681 (4.23%)

Code review

54 tests

User reviews

23 reviews

Install metrics

8,000+ active /76,423 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.83MB] [CPU: ▲9.02ms] Passed 4 tests

This is a short check of server-side resources used by Website File Changes Monitor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.25 ▲0.7950.84 ▲9.77
Dashboard /wp-admin4.15 ▲0.8169.24 ▲7.22
Posts /wp-admin/edit.php4.27 ▲0.9166.14 ▲13.00
Add New Post /wp-admin/post-new.php6.77 ▲0.89109.26 ▲6.08
Media Library /wp-admin/upload.php4.07 ▲0.8555.32 ▲22.61
Help & Contact Us /wp-admin/admin.php?page=wfcm-about4.1444.16
Settings /wp-admin/admin.php?page=wfcm-settings4.4051.18
Files Monitor /wp-admin/admin.php?page=wfcm-file-changes4.2650.81

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 101 new files
Database: 1 new table, 8 new options
New tables
wp_wfcm_file_events
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
wfcm_plugin_version
wfcm_version

Browser metrics Passed 4 tests

Website File Changes Monitor: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8114.06 ▼0.651.57 ▼0.2638.29 ▼8.72
Dashboard /wp-admin2,251 ▲745.67 ▲0.05127.61 ▲29.2483.95 ▲41.22
Posts /wp-admin/edit.php2,159 ▲591.97 ▼0.0539.86 ▲3.7733.24 ▼1.53
Add New Post /wp-admin/post-new.php1,571 ▲4523.61 ▲0.52689.12 ▼13.3160.22 ▲8.72
Media Library /wp-admin/upload.php1,453 ▲564.11 ▼0.04103.03 ▲5.9164.62 ▲24.47
Help & Contact Us /wp-admin/admin.php?page=wfcm-about9302.0025.6344.58
Settings /wp-admin/admin.php?page=wfcm-settings2,3351.8626.9934.89
Files Monitor /wp-admin/admin.php?page=wfcm-file-changes1,0663.2561.3845.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_wfcm_file_events
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • wfcm_version
    • wfcm_plugin_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WFCM_AbstractUpdateWrapper' not found in wp-content/plugins/website-file-changes-monitor/includes/class-wfcm-update-runner.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/website-file-changes-monitor/includes/bg/class-wfcm-background-event-deletion.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/website-file-changes-monitor/includes/wsal-events/alerts/custom-alerts.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'WFCM_UpdateWrapperInterface' not found in wp-content/plugins/website-file-changes-monitor/includes/update/abstract-update-wrapper.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/website-file-changes-monitor/includes/bg/class-wfcm-background-check-changes.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WFCM_AbstractUpdateWrapper' not found in wp-content/plugins/website-file-changes-monitor/includes/update/class-wfcm-create-file-events-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/website-file-changes-monitor/vendor/deliciousbrains/wp-background-processing/wp-background-processing.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/website-file-changes-monitor/includes/wsal-events/sensor-functions.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/website-file-changes-monitor/includes/bg/class-wfcm-background-scanner.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/website-file-changes-monitor/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: file scanner, file changes scanner, file monitor, file changes, file integrity scanner...

website-file-changes-monitor/website-file-changes-monitor.php Passed 13 tests

This is the main PHP file of "Website File Changes Monitor" version 1.9.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
A hassle-free way to get alerted of file changes on your WordPress site & boost security.

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
Everything looks great! No dangerous files found in this plugin7,411 lines of code in 84 files:
LanguageFilesBlank linesComment linesLines of code
PHP641,6904,2786,944
JavaScript6042264
Markdown1600112
JSON20073
SVG60013
CSS5285

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity20.91
▷ Minimum class complexity1.00
▷ Maximum class complexity275.00
Average method complexity3.34
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces4
Interfaces2
Traits0
Classes43
▷ Abstract classes49.30%
▷ Concrete classes3990.70%
▷ Final classes12.56%
Methods385
▷ Static methods8722.60%
▷ Public methods31281.04%
▷ Protected methods297.53%
▷ Private methods4411.43%
Functions69
▷ Named functions4666.67%
▷ Anonymous functions2333.33%
Constants25
▷ Global constants1560.00%
▷ Class constants1040.00%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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