84% extended-user-info

Code Review | Extended User Info

WordPress plugin Extended User Info scored84%from 54 tests.

About plugin

  • Plugin page: extended-user-info
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.1-4.0
  • WordPress version: 6.3.1
  • First release: Dec 15, 2011
  • Latest release: Sep 10, 2014
  • Number of updates: 15
  • Update frequency: every 69.4 days
  • Top authors: dkukral (66.67%)Droyal (33.33%)jboydston (13.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,566 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by Extended User Info
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.01 ▼5.11
Dashboard /wp-admin3.32 ▲0.0242.48 ▼5.31
Posts /wp-admin/edit.php3.37 ▲0.0248.36 ▲1.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.00 ▲0.66
Media Library /wp-admin/upload.php3.24 ▲0.0233.30 ▼1.39

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Extended User Info
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.15 ▼1.281.84 ▼0.2239.90 ▼9.04
Dashboard /wp-admin2,206 ▲185.86 ▲0.06114.10 ▲12.8745.12 ▲3.75
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0238.25 ▼1.2035.98 ▲3.22
Add New Post /wp-admin/post-new.php1,535 ▲1623.12 ▼0.15661.73 ▼27.8273.62 ▲18.24
Media Library /wp-admin/upload.php1,388 ▼04.28 ▲0.1092.65 ▼11.3641.27 ▼0.73

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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/extended-user-info/extended-user-info.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

extended-user-info/extended-user-info.php Passed 13 tests

"Extended User Info" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
56 characters long description:
Plugin is for adding a user title to the WP user profile

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin54 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14854

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin