64% activity-logs

Code Review | Activity Logs

WordPress plugin Activity Logs scored64%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: 6.3.1
  • 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

40+ active /2,746 total downloads

Benchmarks

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.32MB] [CPU: ▼43.86ms] Passed 4 tests

A check of server-side resources used by Activity Logs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.67 ▼0.7910.57 ▼27.82
Dashboard /wp-admin2.69 ▼0.6213.88 ▼36.15
Posts /wp-admin/edit.php2.69 ▼0.6712.69 ▼35.02
Add New Post /wp-admin/post-new.php2.69 ▼3.2015.24 ▼76.45
Media Library /wp-admin/upload.php2.69 ▼0.5414.05 ▼19.44

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 14 new options
New tables
wp_activity_log
New WordPress options
cookspin_wppref_dummy_permalink
cookspin_wppref_dummy_writing
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
cookspin_log_db_version
theysaidso_admin_options
cookspin_wppref_dummy_general
widget_theysaidso_widget
...

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 /2,852 ▲10614.77 ▲0.571.86 ▲0.2838.87 ▼1.35
Dashboard /wp-admin2,258 ▲735.90 ▲1.00109.20 ▲3.4746.72 ▲3.80
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0240.00 ▲3.0537.44 ▲3.71
Add New Post /wp-admin/post-new.php1,533 ▲1423.44 ▲0.31589.99 ▼61.8763.01 ▲8.02
Media Library /wp-admin/upload.php1,391 ▲34.15 ▼0.0095.39 ▲1.3541.00 ▼1.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/activity-logs/loggers.php+265
    Function create_function() is deprecated
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_activity_log
  • This plugin does not fully uninstall, leaving 14 options in the database
    • cookspin_wppref_dummy_writing
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • cookspin_wppref_dummy_permalink
    • widget_recent-comments
    • theysaidso_admin_options
    • cookspin_wppref_dummy_discussion
    • cookspin_log_db_version
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 2× PHP files trigger server errors when accessed directly:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: activity

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

The main PHP file in "Activity Logs" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("activity-logs.php" instead of "functions.php")

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
Everything looks great! No dangerous files found in this plugin1,914 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP22211031,325
PO File2164177435
LESS1327133
JavaScript20020
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions73
▷ Named functions73100.00%
▷ Anonymous functions00.00%
Constants8
▷ 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
No PNG images were found in this plugin