78% custom-users-order

Code Review | Custom Users Order

WordPress plugin Custom Users Order scored78%from 54 tests.

About plugin

  • Plugin page: custom-users-order
  • Plugin version: 4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6
  • WordPress version: 6.3.1
  • First release: Nov 16, 2013
  • Latest release: Nov 24, 2020
  • Number of updates: 62
  • Update frequency: every 41.4 days
  • Top authors: hiren1612 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /19,244 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼11.22ms] Passed 4 tests

An overview of server-side resources used by Custom Users Order
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.33 ▼5.06
Dashboard /wp-admin3.36 ▲0.0145.37 ▼13.06
Posts /wp-admin/edit.php3.41 ▲0.0546.06 ▼1.87
Add New Post /wp-admin/post-new.php5.96 ▲0.0783.37 ▼24.90
Media Library /wp-admin/upload.php3.28 ▲0.0535.42 ▲2.95
Custom Users Order /wp-admin/users.php?page=addsection3.2230.04

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
section_name
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Custom Users Order
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.22 ▼1.161.59 ▼0.0640.73 ▼1.04
Dashboard /wp-admin2,214 ▲264.92 ▼0.9899.77 ▼7.4238.65 ▼3.25
Posts /wp-admin/edit.php2,101 ▲122.26 ▲0.2039.47 ▼4.3434.69 ▲0.54
Add New Post /wp-admin/post-new.php1,521 ▼2123.27 ▲5.27630.56 ▲30.9449.39 ▼1.77
Media Library /wp-admin/upload.php1,390 ▲54.23 ▼0.0097.10 ▼1.5040.94 ▼8.46
Custom Users Order /wp-admin/users.php?page=addsection8251.8327.0132.67

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • section_name
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/users.php?page=addsection
    • > Notice in wp-content/plugins/custom-users-order/addsection.php+24
    Undefined index: sname
    • > GET request to /wp-admin/users.php?page=addsection
    • > Notice in wp-content/plugins/custom-users-order/addsection.php+32
    Undefined index: listing

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/custom-users-order/custom_users_order.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: You are using too many tags: 31 tag instead of maximum 10
You can look at the official readme.txt

custom-users-order/custom_users_order.php 92% from 13 tests

The main file in "Custom Users Order" v. 4.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-users-order.php" instead of "custom_users_order.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected413 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP22546299
JavaScript181188
CSS20126

PHP code Passed 2 tests

A short 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 code0.23
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin