89% aryo-activity-log

Code Review | Activity Log

WordPress plugin Activity Log scored89%from 54 tests.

About plugin

  • Plugin page: aryo-activity-log
  • Plugin version: 2.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4
  • WordPress version: 6.3.1
  • First release: May 23, 2013
  • Latest release: Nov 22, 2023
  • Number of updates: 205
  • Update frequency: every 18.7 days
  • Top authors: KingYes (93.66%)maor (6.83%)

Code review

54 tests

User reviews

71 reviews

Install metrics

200,000+ active /2,410,406 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼2.92ms] Passed 4 tests

Analyzing server-side resources used by Activity Log
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1835.24 ▼4.45
Dashboard /wp-admin3.50 ▲0.2047.67 ▼5.64
Posts /wp-admin/edit.php3.55 ▲0.1950.05 ▲5.75
Add New Post /wp-admin/post-new.php6.02 ▲0.1396.78 ▲0.69
Media Library /wp-admin/upload.php3.36 ▲0.1333.15 ▼2.28
Settings /wp-admin/admin.php?page=activity-log-settings3.3336.31
Activity Log /wp-admin/admin.php?page=activity_log_page3.3536.98

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 35 new files
Database: 1 new table, 8 new options
New tables
wp_aryo_activity_log
New WordPress options
widget_theysaidso_widget
activity-log-settings
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
activity_log_db_version
can_compress_scripts

Browser metrics Passed 4 tests

Activity Log: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9714.25 ▼0.512.07 ▲0.3437.11 ▼6.29
Dashboard /wp-admin2,227 ▲495.64 ▼0.0993.49 ▼19.1739.46 ▼7.03
Posts /wp-admin/edit.php2,132 ▲322.00 ▼0.0139.34 ▲0.8935.57 ▲3.73
Add New Post /wp-admin/post-new.php1,551 ▲1523.12 ▲0.04597.19 ▼72.3852.62 ▲2.23
Media Library /wp-admin/upload.php1,426 ▲264.20 ▲0.0597.52 ▲2.8242.19 ▲0.96
Settings /wp-admin/admin.php?page=activity-log-settings9651.6524.1433.88
Activity Log /wp-admin/admin.php?page=activity_log_page1,2611.7030.3036.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • activity-log-settings
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (The log viewer page), #2 (The settings page), #3 (Screen Options)
The official readme.txt might help

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

This is the main PHP file of "Activity Log" version 2.9.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 234 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,928 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP296674022,831
JavaScript1211488
CSS1009

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity13.48
▷ Minimum class complexity1.00
▷ Maximum class complexity111.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes29
▷ Abstract classes310.34%
▷ Concrete classes2689.66%
▷ Final classes27.69%
Methods171
▷ Static methods179.94%
▷ Public methods14987.13%
▷ Protected methods116.43%
▷ Private methods116.43%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.49MB with 0.32MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png199.32KB67.74KB▼ 66.01%
screenshot-2.png96.36KB34.65KB▼ 64.04%
screenshot-1.png209.74KB69.80KB▼ 66.72%