84% activity-log-gravity-forms

Code Review | WP Activity Log for Gravity Forms

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

About plugin

  • Plugin page: activity-log-grav...
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 8, 2020
  • Latest release: Aug 10, 2023
  • Number of updates: 24
  • Update frequency: every 43.4 days
  • Top authors: WPWhiteSecurity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

7,000+ active /33,967 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.71ms] Passed 4 tests

Analyzing server-side resources used by WP Activity Log for Gravity Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.99 ▲3.05
Dashboard /wp-admin3.34 ▲0.0448.78 ▲7.62
Posts /wp-admin/edit.php3.45 ▲0.1047.53 ▲4.97
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.09 ▼14.30
Media Library /wp-admin/upload.php3.26 ▲0.0335.64 ▲3.45

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

WP Activity Log for Gravity Forms: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.25 ▼1.361.91 ▲0.2943.96 ▲8.04
Dashboard /wp-admin2,234 ▲484.89 ▼0.05111.43 ▼4.7546.03 ▲6.17
Posts /wp-admin/edit.php2,114 ▲282.05 ▼0.0136.83 ▼2.7834.78 ▲0.44
Add New Post /wp-admin/post-new.php1,548 ▲1522.87 ▼0.34660.73 ▲32.2750.30 ▼0.60
Media Library /wp-admin/upload.php1,410 ▲224.28 ▲0.05100.69 ▲1.5343.44 ▲2.20

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/activity-log-gravity-forms/wp-security-audit-log/custom-alerts.php:13
    • > 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:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/activity-log-gravity-forms/includes/wsal-functions.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: Please take inspiration from this readme.txt

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

"WP Activity Log for Gravity Forms" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
No dangerous file extensions were detected3,093 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP95078723,021
JavaScript13272

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity91.00
▷ Minimum class complexity1.00
▷ Maximum class complexity212.00
Average method complexity4.90
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods74
▷ Static methods2837.84%
▷ Public methods6993.24%
▷ Protected methods11.35%
▷ Private methods45.41%
Functions15
▷ Named functions960.00%
▷ Anonymous functions640.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin