84% wp-user-summary

Code Review | WP User Summary

WordPress plugin WP User Summary scored84%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: 6.3.1
  • 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 /1,054 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.44ms] Passed 4 tests

Server-side resources used by WP User Summary
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0232.18 ▼7.76
Dashboard /wp-admin3.34 ▼0.0054.44 ▼6.87
Posts /wp-admin/edit.php3.37 ▲0.0263.14 ▲17.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.11 ▲0.42
Media Library /wp-admin/upload.php3.24 ▲0.0231.91 ▲0.47

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP User Summary
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲16813.67 ▼0.701.74 ▲0.0439.71 ▼5.78
Dashboard /wp-admin2,320 ▲1324.87 ▲0.01109.52 ▲1.1345.44 ▲3.13
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0040.71 ▲4.8535.08 ▲0.05
Add New Post /wp-admin/post-new.php1,519 ▼422.82 ▼0.19617.73 ▼23.7866.68 ▲10.91
Media Library /wp-admin/upload.php1,388 ▼04.14 ▼0.0497.20 ▼3.0843.92 ▼1.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: at glance, info, user-staus, user, summary

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

The main PHP file in "WP User Summary" ver. 1.01 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin70 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17970

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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/Screenshot-1.png32.61KB16.85KB▼ 48.32%
assets/icon-256x256.png10.14KB5.38KB▼ 46.96%
assets/banner-772x250.png23.11KB10.43KB▼ 54.87%