88% adjust-users-screen

Code Review | Adjust Users Screen

WordPress plugin Adjust Users Screen scored 88% from 54 tests.

About plugin

  • Plugin page: adjust-users-screen
  • Plugin version: 0.11
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Apr 6, 2016
  • Latest release: Apr 7, 2016
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: keith_wp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 767 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼143.51ms] Passed 4 tests

Analyzing server-side resources used by Adjust Users Screen
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1439.70 ▲15.39
Dashboard /wp-admin3.10 ▲0.0444.19 ▼7.14
Posts /wp-admin/edit.php3.15 ▲0.0445.18 ▼4.35
Add New Post /wp-admin/post-new.php5.45 ▲0.0196.07 ▼565.38
Media Library /wp-admin/upload.php3.04 ▲0.0435.17 ▲2.85
Adjust Users Screen /wp-admin/options-general.php?page=AdjustUsersScreenPlugin/settings.php2.9930.09

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Adjust Users Screen
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲9316.24 ▲0.357.06 ▼1.7846.39 ▼7.20
Dashboard /wp-admin2,984 ▲535.90 ▼0.03143.22 ▼8.75132.09 ▲10.30
Posts /wp-admin/edit.php2,753 ▲142.71 ▲0.0373.34 ▲0.4995.79 ▼2.32
Add New Post /wp-admin/post-new.php1,690 ▲10918.81 ▲0.48398.53 ▼17.38122.00 ▼4.75
Media Library /wp-admin/upload.php1,818 ▲115.05 ▲0.05155.12 ▼5.49127.19 ▼5.50
Adjust Users Screen /wp-admin/options-general.php?page=AdjustUsersScreenPlugin/settings.php1,0802.5865.1790.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=AdjustUsersScreenPlugin/settings.php
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method AdjustUsersScreenPlugin::display_settings_page() should not be called statically

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/adjust-users-screen/adjust-users-screen.php:14

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)
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Requires at least: Version format is invalid
You can take inspiration from this readme.txt

adjust-users-screen/adjust-users-screen.php 92% from 13 tests

The entry point to "Adjust Users Screen" version 0.11 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin473 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions3100.00%
▷ 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
PNG images were not found in this plugin