84% user-first-kit

Code Review | User First Kit

WordPress plugin User First Kit scored84%from 54 tests.

About plugin

  • Plugin page: user-first-kit
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 19, 2023
  • Latest release: Nov 19, 2023
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: huzaifaalmesbah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /24 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.90ms] Passed 4 tests

Server-side resources used by User First Kit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.69 ▼3.22
Dashboard /wp-admin3.34 ▼0.0144.78 ▼16.41
Posts /wp-admin/edit.php3.39 ▲0.0345.51 ▼2.26
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.46 ▼9.69
Media Library /wp-admin/upload.php3.26 ▲0.0333.61 ▲0.79
User First Kit /wp-admin/tools.php?page=ufk-settings3.2531.59

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for User First Kit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7214.67 ▲0.321.87 ▼0.0340.65 ▼3.72
Dashboard /wp-admin2,202 ▲225.64 ▲0.0491.88 ▼3.6442.43 ▲3.60
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0842.04 ▲1.5337.38 ▼2.26
Add New Post /wp-admin/post-new.php1,529 ▲323.22 ▲0.16657.36 ▼72.9754.76 ▼1.75
Media Library /wp-admin/upload.php1,407 ▲104.17 ▼0.0399.94 ▼3.9344.58 ▲0.51
User First Kit /wp-admin/tools.php?page=ufk-settings8072.0023.5726.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/user-first-kit/class-user-first-kit-plugin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: The official readme.txt is a good inspiration

user-first-kit/class-user-first-kit-plugin.php 92% from 13 tests

The principal PHP file in "User First Kit" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("user-first-kit.php" instead of "class-user-first-kit-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected174 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13065174

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 images were found in this plugin