90% watchful-app-changed-files

Code Review | Changed Files app for Watchful

WordPress plugin Changed Files app for Watchful scored90%from 54 tests.

About plugin

  • Plugin page: watchful-app-chan...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: Jun 8, 2022
  • Latest release: Jun 8, 2022
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: watchful (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /476 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.46ms] Passed 4 tests

An overview of server-side resources used by Changed Files app for Watchful
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.89 ▼4.06
Dashboard /wp-admin3.33 ▲0.0347.91 ▼3.54
Posts /wp-admin/edit.php3.38 ▲0.0350.70 ▼1.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.50 ▼20.99
Media Library /wp-admin/upload.php3.25 ▲0.0337.56 ▼0.27
Watchful App: Changed Files /wp-admin/options-general.php?page=watchful-app-changed-files-settings3.2227.86

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

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

Browser metrics Passed 4 tests

Changed Files app for Watchful: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.44 ▲0.191.56 ▼0.5138.63 ▼7.41
Dashboard /wp-admin2,210 ▲225.85 ▼0.02111.53 ▼6.1141.85 ▼1.73
Posts /wp-admin/edit.php2,093 ▲11.96 ▼0.0439.82 ▲0.1936.65 ▲4.77
Add New Post /wp-admin/post-new.php1,537 ▼523.00 ▲4.68587.95 ▼27.0559.61 ▲9.84
Media Library /wp-admin/upload.php1,395 ▲74.32 ▲0.1199.09 ▼7.9942.68 ▼1.42
Watchful App: Changed Files /wp-admin/options-general.php?page=watchful-app-changed-files-settings8752.0625.1732.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 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
2 plugin tags: file monitoring, site monitoring

watchful-app-changed-files/watchful-app-changed-files.php Passed 13 tests

"Changed Files app for Watchful" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
70 characters long description:
An app for Watchful.net to monitor a custom list of files for changes.

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
Good job! No executable or dangerous file extensions detected312 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP98611312

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods23
▷ Static methods313.04%
▷ Public methods2295.65%
▷ Protected methods14.35%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin