94% wp-user-summary

Code Review | WP User Summary

WordPress plugin WP User Summary scored 94% from 54 tests.

About plugin

  • Plugin page: wp-user-summary
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 5.9.2
  • First release: Mar 7, 2015
  • Latest release: Apr 30, 2015
  • Number of updates: 8
  • Update frequency: every 6.9 days
  • Top authors: haruncpi (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 922 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by WP User Summary
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.83 ▲1.14
Dashboard /wp-admin3.43 ▲0.0234.66 ▲3.51
Posts /wp-admin/edit.php3.65 ▲0.0036.08 ▼0.84
Add New Post /wp-admin/post-new.php6.88 ▼0.0997.89 ▼1,181.34
Media Library /wp-admin/upload.php3.30 ▲0.0028.29 ▲5.28

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WP User Summary
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,935 ▲21316.27 ▲0.235.64 ▲0.132.06 ▼0.35
Dashboard /wp-admin3,045 ▲1846.15 ▼0.04121.12 ▼6.64172.81 ▲11.74
Posts /wp-admin/edit.php2,694 ▲33.23 ▼0.0161.72 ▼2.35139.88 ▼3.78
Add New Post /wp-admin/post-new.php1,661 ▼016.02 ▼5.98443.54 ▲22.26148.75 ▼6.30
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.00141.59 ▲4.77183.44 ▲1.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-user-summary/wp-user-summary.php:10

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: user, user-staus, info, summary, at glance

wp-user-summary/wp-user-summary.php 92% from 13 tests

The main file in "WP User Summary" v. 1.01 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 158 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
Good job! No executable or dangerous file extensions detected70 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17970

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions6
▷ Named functions6100.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
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png10.14KB5.38KB▼ 46.96%
assets/Screenshot-1.png32.61KB16.85KB▼ 48.32%
assets/banner-772x250.png23.11KB10.43KB▼ 54.87%