89% show-activity-log-of-custom-roles

Code Review | Show Activity Log Of Custom Roles

WordPress plugin Show Activity Log Of Custom Roles scored89%from 54 tests.

About plugin

  • Plugin page: show-activity-log...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 3, 2020
  • Latest release: Oct 3, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: devendra21986 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /374 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.43ms] Passed 4 tests

This is a short check of server-side resources used by Show Activity Log Of Custom Roles
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.68 ▼5.37
Dashboard /wp-admin3.31 ▼0.0446.32 ▼12.41
Posts /wp-admin/edit.php3.36 ▲0.0044.23 ▼0.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.15 ▼11.09
Media Library /wp-admin/upload.php3.24 ▲0.0031.77 ▼0.59

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Show Activity Log Of Custom Roles
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.21 ▼1.151.75 ▼0.4544.55 ▼2.67
Dashboard /wp-admin2,206 ▲184.88 ▼0.20110.14 ▲1.3442.16 ▼0.11
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0536.56 ▼4.3831.40 ▼4.87
Add New Post /wp-admin/post-new.php1,536 ▲323.26 ▼0.25653.14 ▼50.6957.49 ▲10.45
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.0199.55 ▼11.1341.69 ▼6.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: activity log, custom roles activity log, view log of custom roles, activity log of created roles

show-activity-log-of-custom-roles/activity-log-custom-roles.php 85% from 13 tests

"Show Activity Log Of Custom Roles" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("show-activity-log-of-custom-roles.php" instead of "activity-log-custom-roles.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 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected16 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP292716

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin