Benchmarks
Plugin footprint 83% 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: ▲0.01MB] [CPU: ▼2.76ms] Passed 4 tests
Server-side resources used by User Activity
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.02 | 45.70 ▲1.07 |
Dashboard /wp-admin | 3.59 ▼0.04 | 50.94 ▼15.10 |
Posts /wp-admin/edit.php | 3.71 ▲0.03 | 53.99 ▲0.89 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.03 | 94.69 ▲2.10 |
Media Library /wp-admin/upload.php | 3.52 ▲0.03 | 41.20 ▲4.23 |
User Activity /wp-admin/tools.php?page=user-activity-page | 3.54 | 38.85 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for User Activity
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.38 ▼0.00 | 1.94 ▼0.02 | 43.07 ▲0.04 |
Dashboard /wp-admin | 2,199 ▲21 | 5.60 ▼0.13 | 92.08 ▼14.03 | 41.41 ▼3.86 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▼0.01 | 40.26 ▲2.57 | 36.41 ▲0.33 |
Add New Post /wp-admin/post-new.php | 1,529 ▼16 | 17.76 ▼5.31 | 666.77 ▼45.03 | 52.68 ▼12.07 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.23 ▼0.01 | 98.96 ▼20.77 | 47.99 ▼2.86 |
User Activity /wp-admin/tools.php?page=user-activity-page | 1,130 | 1.90 | 41.77 | 40.35 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
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 | 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
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/user-activity/user-activity.php
- > /wp-content/plugins/user-activity/classes/class-bu-user-activity-table.php
- > /wp-content/plugins/user-activity/classes/class-bu-plugin-base.php
- > /wp-content/plugins/user-activity/classes/class-bu-user-activity.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: list, admin, users
user-activity/user-activity.php Passed 13 tests
"User Activity" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
89 characters long description:
List number of posts per user. You can limit the search by date, post type and user name.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin286 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 52 | 201 | 281 |
JavaScript | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 2 | 10.53% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin