10% activity-log-mainwp

Code Review | Activity Log For MainWP

WordPress plugin Activity Log For MainWP scored 10% from 54 tests.

About plugin

  • Plugin page: activity-log-mainwp
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.2
  • WordPress version: 5.9.2
  • First release: Nov 15, 2018
  • Latest release: Mar 29, 2022
  • Number of updates: 69
  • Update frequency: every 18.1 days
  • Top authors: WPWhiteSecurity (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active / 37,560 total downloads


Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-includes/functions.php+6570
    fopen(wp-content/plugins/mainwp/mainwp.php): failed to open stream: No such file or directory

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

Server-side resources used by Activity Log For MainWP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0180.11 ▼6.89
Dashboard /wp-admin3.41 ▲0.0042.18 ▲1.36
Posts /wp-admin/edit.php3.64 ▼0.0047.28 ▼11.15
Add New Post /wp-admin/post-new.php6.88 ▼0.09115.14 ▼1,213.29
Media Library /wp-admin/upload.php3.29 ▲0.0036.60 ▼0.07

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 155 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Activity Log For MainWP: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,821 ▲6315.76 ▲0.2813.01 ▼6.723.60 ▼0.11
Dashboard /wp-admin2,918 ▲426.40 ▲0.03189.38 ▼59.40207.13 ▲3.33
Posts /wp-admin/edit.php2,685 ▼13.42 ▼0.0187.25 ▼19.02210.60 ▲22.56
Add New Post /wp-admin/post-new.php1,635 ▼3316.11 ▼4.88667.42 ▲39.33202.45 ▼37.94
Media Library /wp-admin/upload.php1,695 ▼25.72 ▲0.10190.36 ▲6.59251.22 ▼3.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/activity-log-mainwp/extensions/reports/download.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/activity-log-mainwp/includes/processes/class-enforce-settings-background-process.php:7
    • > [MWPAL Reporting Plugin] Requesting download.php with a missing or invalid nonce [code
    • > PHP Fatal error
      Uncaught Error: Class 'WSAL\\MainWPExtension\\Views\\AuditLogView' not found in wp-content/plugins/activity-log-mainwp/includes/views/class-auditloglistview.php:20
    • > [MWPAL Reporting Plugin] Requesting download.php without the "f" parameter [code
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/activity-log-mainwp/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WSAL\\MainWPExtension\\Enforce_Settings_Background_Process' not found in wp-content/plugins/activity-log-mainwp/includes/processes/class-enforce-settings-update-process.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WSAL\\MainWPExtension\\Enforce_Settings_Background_Process' not found in wp-content/plugins/activity-log-mainwp/includes/processes/class-enforce-settings-removal-process.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/activity-log-mainwp/vendor/deliciousbrains/wp-background-processing/wp-background-processing.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #4 (Once you install the plugin you are greeted with a one-time setup wizard.) image required
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

activity-log-mainwp/activity-log-mainwp.php 92% from 13 tests

"Activity Log For MainWP" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin26,372 lines of code in 137 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity26.06
▷ Minimum class complexity1.00
▷ Maximum class complexity420.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
▷ Abstract classes1415.91%
▷ Concrete classes7484.09%
▷ Final classes34.05%
▷ Static methods597.23%
▷ Public methods66181.00%
▷ Protected methods9311.40%
▷ Private methods627.60%
▷ Named functions2875.68%
▷ Anonymous functions924.32%
▷ Global constants2678.79%
▷ Class constants721.21%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/dist/select2/select2x2.png0.83KB0.77KB▼ 6.15%
assets/img/wsal-logo-full@2x.png34.26KB10.92KB▼ 68.14%
assets/img/wsal-logo-full.png15.85KB5.82KB▼ 63.31%
assets/img/wsal-logo@2x.png10.54KB4.05KB▼ 61.54%