90% user-toolkit

Code Review | User Toolkit

WordPress plugin User Toolkit scored90%from 54 tests.

About plugin

  • Plugin page: user-toolkit
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.5-6.2
  • WordPress version: 6.3.1
  • First release: Nov 10, 2022
  • Latest release: May 5, 2023
  • Number of updates: 13
  • Update frequency: every 13.5 days
  • Top authors: deryck (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /743 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼1.60ms] Passed 4 tests

Analyzing server-side resources used by User Toolkit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2338.51 ▼1.27
Dashboard /wp-admin3.59 ▲0.2846.32 ▼1.63
Posts /wp-admin/edit.php3.64 ▲0.2847.43 ▼1.90
Add New Post /wp-admin/post-new.php6.14 ▲0.2593.69 ▼1.58
Media Library /wp-admin/upload.php3.45 ▲0.2238.11 ▲4.55

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by User Toolkit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7614.10 ▼0.281.86 ▼0.1040.34 ▲0.33
Dashboard /wp-admin2,211 ▲195.77 ▲0.84123.93 ▲8.1541.22 ▼5.23
Posts /wp-admin/edit.php2,104 ▲152.67 ▲0.6651.93 ▲9.9834.46 ▼1.10
Add New Post /wp-admin/post-new.php1,520 ▲623.34 ▲5.62593.65 ▼86.0347.42 ▼7.80
Media Library /wp-admin/upload.php1,397 ▲124.99 ▲0.79105.86 ▲3.2942.24 ▲0.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: Please take inspiration from this readme.txt

user-toolkit/user-toolkit.php Passed 13 tests

Analyzing the main PHP file in "User Toolkit" version 1.2.1
81 characters long description:
The missing user tools and activity data that you need and don't have by default.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected20,876 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JSON40019,280
PHP163234061,156
JavaScript43338143
CSS293112
PO File13535106
Sass116079

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity17.30
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods81
▷ Static methods1923.46%
▷ Public methods7896.30%
▷ Protected methods00.00%
▷ Private methods33.70%
Functions12
▷ Named functions216.67%
▷ Anonymous functions1083.33%
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 files were detected