94% activity-log-gravity-forms

Code Review | WP Activity Log for Gravity Forms

WordPress plugin WP Activity Log for Gravity Forms scored 94% from 54 tests.

About plugin

  • Plugin page: activity-log-grav...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Dec 8, 2020
  • Latest release: Jan 29, 2022
  • Number of updates: 10
  • Update frequency: every 44.2 days
  • Top authors: WPWhiteSecurity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active / 6,347 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼296.07ms] Passed 4 tests

Server-side resources used by WP Activity Log for Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0350.05 ▲1.11
Dashboard /wp-admin3.44 ▲0.0433.09 ▲0.93
Posts /wp-admin/edit.php3.67 ▲0.0337.84 ▼14.20
Add New Post /wp-admin/post-new.php6.94 ▼0.0599.15 ▼1,169.81
Media Library /wp-admin/upload.php3.32 ▲0.0226.63 ▼1.18

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Activity Log for Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,796 ▲3816.01 ▲0.046.67 ▲0.932.36 ▼0.35
Dashboard /wp-admin2,928 ▲676.16 ▼0.02115.68 ▼12.58162.06 ▲1.50
Posts /wp-admin/edit.php2,721 ▲303.25 ▲0.0262.33 ▼0.75139.05 ▼2.98
Add New Post /wp-admin/post-new.php1,662 ▲120.80 ▲4.30433.28 ▲34.24157.04 ▲3.94
Media Library /wp-admin/upload.php1,731 ▲365.58 ▲0.03149.52 ▲15.51186.99 ▼0.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/activity-log-gravity-forms/includes/wsal-functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/activity-log-gravity-forms/wp-security-audit-log/custom-alerts.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/activity-log-gravity-forms/activity-log-gravity-forms.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'WSAL_AbstractSensor' not found in wp-content/plugins/activity-log-gravity-forms/wp-security-audit-log/custom-sensors/WSAL_Sensors_Gravity_Forms.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: The official readme.txt might help

activity-log-gravity-forms/activity-log-gravity-forms.php 92% from 13 tests

"WP Activity Log for Gravity Forms" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,704 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP72863511,632
JavaScript13272

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity86.67
▷ Minimum class complexity24.00
▷ Maximum class complexity198.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods3995.12%
▷ Protected methods00.00%
▷ Private methods24.88%
Functions11
▷ Named functions981.82%
▷ Anonymous functions218.18%
Constants2
▷ Global constants2100.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
No PNG files were detected