80% activities

Code Review | Activities

WordPress plugin Activities scored 80% from 54 tests.

About plugin

  • Plugin page: activities
  • Plugin version: 1.1.8
  • PHP compatiblity: 7.0.32+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.6.1
  • WordPress version: 5.8.1
  • First release: Dec 4, 2008
  • Latest release: Feb 21, 2021
  • Number of updates: 18
  • Update frequency: every 247.8 days
  • Top authors: loderian (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,203 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲1.50MB] [CPU: ▼130.38ms] Passed 4 tests

An overview of server-side resources used by Activities
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.9841.26 ▲19.64
Dashboard /wp-admin4.78 ▲1.7258.49 ▲12.21
Posts /wp-admin/edit.php4.83 ▲1.7257.83 ▲12.04
Add New Post /wp-admin/post-new.php7.07 ▲1.63102.61 ▼555.29
Media Library /wp-admin/upload.php4.66 ▲1.6642.39 ▲9.51
Import /wp-admin/admin.php?page=activities-admin-import4.6439.15
Plans /wp-admin/admin.php?page=activities-admin-plans4.6447.51
Export /wp-admin/admin.php?page=activities-admin-export4.6445.08
Activities /wp-admin/admin.php?page=activities-admin4.6445.32
Archive /wp-admin/admin.php?page=activities-admin-archive4.6439.67
Locations /wp-admin/admin.php?page=activities-admin-locations4.6445.98
Options /wp-admin/admin.php?page=activities-admin-options4.6541.02

Server storage [IO: ▲0.80MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 71 new files
Database: 6 new tables, 2 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Activities
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,872 ▲26616.35 ▲0.9315.86 ▲6.4744.68 ▼15.24
Dashboard /wp-admin3,034 ▲1006.23 ▲0.26152.96 ▼1.00103.68 ▼6.81
Posts /wp-admin/edit.php2,800 ▲612.73 ▼0.1269.26 ▲2.1790.14 ▲9.63
Add New Post /wp-admin/post-new.php1,724 ▲4118.47 ▼0.26372.50 ▼14.54105.63 ▼2.89
Media Library /wp-admin/upload.php1,868 ▲615.14 ▲0.11160.71 ▼3.33123.59 ▲9.66
Import /wp-admin/admin.php?page=activities-admin-import1,1632.8771.7962.17
Plans /wp-admin/admin.php?page=activities-admin-plans1,3412.9274.4184.13
Export /wp-admin/admin.php?page=activities-admin-export1,3052.7677.1974.91
Activities /wp-admin/admin.php?page=activities-admin1,4772.6666.7185.01
Archive /wp-admin/admin.php?page=activities-admin-archive1,4662.6683.4480.31
Locations /wp-admin/admin.php?page=activities-admin-locations1,4032.6959.4484.69
Options /wp-admin/admin.php?page=activities-admin-options1,4272.7873.0691.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall successfully, leaving 6 tables in the database
    • wp_activities_user_activity
    • wp_activities_location
    • wp_activities_plan_session
    • wp_activities_activity_meta
    • wp_activities_activity
    • wp_activities_plan
  • Zombie WordPress options detected upon uninstall: 2 options
    • acts_cat_children
    • activities_db_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: report, events, classes, activities, courses

activities/activities.php Passed 13 tests

Analyzing the main PHP file in "Activities" version 1.1.8
123 characters long description:
A plugin for managing activities, activity reports and communication with participants. Comes with WooCommerce integration.

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
Good job! No executable or dangerous file extensions detected12,463 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
PO File16268151,365

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.42
Average class complexity24.90
▷ Minimum class complexity1.00
▷ Maximum class complexity120.00
Average method complexity3.51
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
▷ Abstract classes13.33%
▷ Concrete classes2996.67%
▷ Final classes00.00%
▷ Static methods14750.34%
▷ Public methods23680.82%
▷ Protected methods4916.78%
▷ Private methods72.40%
▷ Named functions6793.06%
▷ Anonymous functions56.94%
▷ Global constants2884.85%
▷ Class constants515.15%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin