84% activity-log-wp-seo

Code Review | WP Activity Log for Yoast SEO

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

About plugin

  • Plugin page: activity-log-wp-seo
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2020
  • Latest release: Aug 9, 2023
  • Number of updates: 26
  • Update frequency: every 41.2 days
  • Top authors: WPWhiteSecurity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active / 78,233 total downloads

Benchmarks

Plugin footprint 83% from 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼3.07ms] Passed 4 tests

Server-side resources used by WP Activity Log for Yoast SEO
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.06 ▼5.45
Dashboard /wp-admin3.41 ▲0.1146.84 ▼1.93
Posts /wp-admin/edit.php3.53 ▲0.1750.24 ▼0.55
Add New Post /wp-admin/post-new.php6.01 ▲0.1388.02 ▼4.35
Media Library /wp-admin/upload.php3.34 ▲0.1138.16 ▲3.71

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP Activity Log for Yoast SEO
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.22 ▼1.154.22 ▲2.1242.10 ▼3.86
Dashboard /wp-admin2,225 ▲345.83 ▲0.94104.99 ▼0.4141.91 ▼0.98
Posts /wp-admin/edit.php2,117 ▲252.04 ▲0.0642.81 ▲1.5337.34 ▲1.32
Add New Post /wp-admin/post-new.php1,547 ▲1423.27 ▲0.09675.39 ▲29.4065.59 ▲2.12
Media Library /wp-admin/upload.php1,407 ▲194.27 ▲0.0699.90 ▼1.4443.68 ▼1.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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)
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
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > 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:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/activity-log-wp-seo/wp-security-audit-log/custom-alerts.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: You can look at the official readme.txt

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

This is the main PHP file of "WP Activity Log for Yoast SEO" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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
Good job! No executable or dangerous file extensions detected4,008 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP85199333,936
JavaScript13272

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.73
Average class complexity130.60
▷ Minimum class complexity1.00
▷ Maximum class complexity296.00
Average method complexity10.13
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods71
▷ Static methods2839.44%
▷ Public methods2738.03%
▷ Protected methods1318.31%
▷ Private methods3143.66%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin