94% activity-log-wp-seo

Code Review | WP Activity Log for Yoast SEO

WordPress plugin WP Activity Log for Yoast SEO scored 94% from 54 tests.

About plugin

  • Plugin page: activity-log-wp-seo
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Oct 2, 2020
  • Latest release: Jan 29, 2022
  • Number of updates: 17
  • Update frequency: every 28.5 days
  • Top authors: WPWhiteSecurity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active / 32,434 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼287.31ms] Passed 4 tests

Server-side resources used by WP Activity Log for Yoast SEO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.4753.85 ▲27.32
Dashboard /wp-admin3.52 ▲0.1136.35 ▲2.59
Posts /wp-admin/edit.php3.74 ▲0.1040.26 ▲3.86
Add New Post /wp-admin/post-new.php6.98 ▲0.0196.47 ▼1,154.23
Media Library /wp-admin/upload.php3.39 ▲0.0924.15 ▼1.47

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Activity Log for Yoast SEO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,818 ▲6416.37 ▲0.436.12 ▲0.062.43 ▼0.17
Dashboard /wp-admin2,914 ▲536.06 ▼0.14126.29 ▼6.36167.81 ▲8.25
Posts /wp-admin/edit.php2,718 ▲333.24 ▲0.0070.82 ▲5.43144.58 ▲1.39
Add New Post /wp-admin/post-new.php1,685 ▼3315.93 ▼6.49446.51 ▲33.39159.81 ▼2.38
Media Library /wp-admin/upload.php1,731 ▲365.56 ▲0.04141.59 ▼4.88183.29 ▼10.59

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
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 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/activity-log-wp-seo/activity-log-wp-seo.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/activity-log-wp-seo/wp-security-audit-log/custom-alerts.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

activity-log-wp-seo/activity-log-wp-seo.php Passed 13 tests

Analyzing the main PHP file in "WP Activity Log for Yoast SEO" version 1.2.0
48 characters long description:
A WP Activity Log plugin extension for Yoast SEO

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,859 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity101.33
▷ Minimum class complexity24.00
▷ Maximum class complexity242.00
Average method complexity8.72
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2153.85%
▷ Protected methods1128.21%
▷ Private methods717.95%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
PNG images were not found in this plugin