Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.98 | 41.26 ▲19.64 |
Dashboard /wp-admin | 4.78 ▲1.72 | 58.49 ▲12.21 |
Posts /wp-admin/edit.php | 4.83 ▲1.72 | 57.83 ▲12.04 |
Add New Post /wp-admin/post-new.php | 7.07 ▲1.63 | 102.61 ▼555.29 |
Media Library /wp-admin/upload.php | 4.66 ▲1.66 | 42.39 ▲9.51 |
Import /wp-admin/admin.php?page=activities-admin-import | 4.64 | 39.15 |
Plans /wp-admin/admin.php?page=activities-admin-plans | 4.64 | 47.51 |
Export /wp-admin/admin.php?page=activities-admin-export | 4.64 | 45.08 |
Activities /wp-admin/admin.php?page=activities-admin | 4.64 | 45.32 |
Archive /wp-admin/admin.php?page=activities-admin-archive | 4.64 | 39.67 |
Locations /wp-admin/admin.php?page=activities-admin-locations | 4.64 | 45.98 |
Options /wp-admin/admin.php?page=activities-admin-options | 4.65 | 41.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 |
---|
wp_activities_activity_meta |
wp_activities_plan_session |
wp_activities_location |
wp_activities_plan |
wp_activities_user_activity |
wp_activities_activity |
New WordPress options |
---|
activities_db_version |
acts_cat_children |
Browser metrics Passed 4 tests
An overview of browser requirements for Activities
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,872 ▲266 | 16.35 ▲0.93 | 15.86 ▲6.47 | 44.68 ▼15.24 |
Dashboard /wp-admin | 3,034 ▲100 | 6.23 ▲0.26 | 152.96 ▼1.00 | 103.68 ▼6.81 |
Posts /wp-admin/edit.php | 2,800 ▲61 | 2.73 ▼0.12 | 69.26 ▲2.17 | 90.14 ▲9.63 |
Add New Post /wp-admin/post-new.php | 1,724 ▲41 | 18.47 ▼0.26 | 372.50 ▼14.54 | 105.63 ▼2.89 |
Media Library /wp-admin/upload.php | 1,868 ▲61 | 5.14 ▲0.11 | 160.71 ▼3.33 | 123.59 ▲9.66 |
Import /wp-admin/admin.php?page=activities-admin-import | 1,163 | 2.87 | 71.79 | 62.17 |
Plans /wp-admin/admin.php?page=activities-admin-plans | 1,341 | 2.92 | 74.41 | 84.13 |
Export /wp-admin/admin.php?page=activities-admin-export | 1,305 | 2.76 | 77.19 | 74.91 |
Activities /wp-admin/admin.php?page=activities-admin | 1,477 | 2.66 | 66.71 | 85.01 |
Archive /wp-admin/admin.php?page=activities-admin-archive | 1,466 | 2.66 | 83.44 | 80.31 |
Locations /wp-admin/admin.php?page=activities-admin-locations | 1,403 | 2.69 | 59.44 | 84.69 |
Options /wp-admin/admin.php?page=activities-admin-options | 1,427 | 2.78 | 73.06 | 91.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
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 1,543 | 2,849 | 8,022 |
JavaScript | 6 | 307 | 34 | 1,797 |
PO File | 1 | 626 | 815 | 1,365 |
CSS | 4 | 215 | 29 | 1,279 |
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 code | 0.42 |
Average class complexity | 24.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 3.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 1 | 3.33% |
▷ Concrete classes | 29 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 292 | |
▷ Static methods | 147 | 50.34% |
▷ Public methods | 236 | 80.82% |
▷ Protected methods | 49 | 16.78% |
▷ Private methods | 7 | 2.40% |
Functions | 72 | |
▷ Named functions | 67 | 93.06% |
▷ Anonymous functions | 5 | 6.94% |
Constants | 33 | |
▷ Global constants | 28 | 84.85% |
▷ Class constants | 5 | 15.15% |
▷ Public constants | 5 | 100.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