10% file-changes-monitor

Code Review | WordPress File Monitor

WordPress plugin WordPress File Monitor scored10%from 54 tests.

About plugin

  • Plugin page: file-changes-monitor
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.0
  • WordPress version: 6.3.1
  • First release: Dec 12, 2016
  • Latest release: Dec 8, 2018
  • Number of updates: 38
  • Update frequency: every 19.0 days
  • Top authors: nicolly (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

2,000+ active /21,764 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/file-changes-monitor/classes/wpfmp.class.php+82
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.26MB] [CPU: ▼4.35ms] Passed 4 tests

An overview of server-side resources used by WordPress File Monitor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2843.40 ▲5.59
Dashboard /wp-admin3.57 ▲0.2347.94 ▼8.98
Posts /wp-admin/edit.php3.69 ▲0.3347.94 ▼1.38
Add New Post /wp-admin/post-new.php6.15 ▲0.2781.12 ▼11.75
Media Library /wp-admin/upload.php3.50 ▲0.2739.31 ▲4.72
WordPress File Monitor /wp-admin/options-general.php?page=wordpress-file-monitor3.4431.77

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WordPress File Monitor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.41 ▼0.974.33 ▲2.7542.44 ▲4.45
Dashboard /wp-admin2,213 ▲214.87 ▼0.06108.48 ▼2.5438.36 ▼0.06
Posts /wp-admin/edit.php2,099 ▲102.00 ▼0.0336.32 ▼1.1833.55 ▼0.45
Add New Post /wp-admin/post-new.php1,539 ▲2523.45 ▲5.95664.33 ▲7.2155.52 ▲7.38
Media Library /wp-admin/upload.php1,389 ▲14.24 ▲0.0296.79 ▲0.7042.57 ▲0.71
WordPress File Monitor /wp-admin/options-general.php?page=wordpress-file-monitor1,1422.0436.2941.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/file-changes-monitor/file-changes-monitor.php+17
    Constant WFM3_I18N already defined
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wordpress-file-monitor
    • > 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=wordpress-file-monitor
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wordpress-file-monitor
    • > Deprecated in wp-content/plugins/file-changes-monitor/classes/wpfmp.settings.class.php+583
    implode(): Passing glue string after array is deprecated. Swap the parameters

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

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, but this is not an exhaustive test

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
6 plugin tags: security, files, secure, plugin, file...

file-changes-monitor/file-changes-monitor.php 92% from 13 tests

"WordPress File Monitor" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,909 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP52983011,029
PO File4311438724
JavaScript2136156

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity95.50
▷ Minimum class complexity62.00
▷ Maximum class complexity129.00
Average method complexity4.63
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods52
▷ Static methods52100.00%
▷ Public methods4688.46%
▷ Protected methods59.62%
▷ Private methods11.92%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants19100.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
No PNG files were detected