64% activity-logs

Code Review | Activity Logs

WordPress plugin Activity Logs scored 64% from 54 tests.

About plugin

  • Plugin page: activity-logs
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 5.9.2
  • First release: May 25, 2013
  • Latest release: May 25, 2013
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: tbuteler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 2,393 total downloads


Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.79MB] [CPU: ▼340.20ms] Passed 4 tests

A check of server-side resources used by Activity Logs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.56 ▼0.969.94 ▼40.29
Dashboard /wp-admin2.61 ▼0.8010.05 ▼22.88
Posts /wp-admin/edit.php2.61 ▼1.0310.63 ▼28.40
Add New Post /wp-admin/post-new.php2.61 ▼4.3611.10 ▼1,262.75
Media Library /wp-admin/upload.php2.61 ▼0.698.99 ▼29.36

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 8 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Activity Logs: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,840 ▲9815.94 ▲0.356.75 ▲0.772.03 ▼0.14
Dashboard /wp-admin2,968 ▲1076.03 ▼0.09116.44 ▼15.06169.37 ▲7.90
Posts /wp-admin/edit.php2,694 ▲63.24 ▲0.0162.59 ▼3.05138.44 ▼3.96
Add New Post /wp-admin/post-new.php1,773 ▲1320.72 ▲3.72453.38 ▲17.32171.73 ▲23.92
Media Library /wp-admin/upload.php1,698 ▼05.48 ▼0.04143.17 ▼4.99188.18 ▼6.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/activity-logs/loggers.php+265
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_activity_log
  • The uninstall procedure has failed, leaving 8 options in the database
    • cookspin_wppref_dummy_discussion
    • cookspin_log_db_version
    • cookspin_wppref_dummy_reading
    • cookspin_has_log
    • cookspin_wppref_dummy_media
    • cookspin_wppref_dummy_permalink
    • cookspin_wppref_dummy_general
    • cookspin_wppref_dummy_writing

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/activity-logs/loggers.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/activity-logs/loggers.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: activity

activity-logs/functions.php 85% from 13 tests

Analyzing the main PHP file in "Activity Logs" version 1.1
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("activity-logs.php" instead of "functions.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,914 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PO File2164177435

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions73100.00%
▷ Anonymous functions00.00%
▷ Global constants8100.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
There were not PNG files found in your plugin