83% extra-user-data

Code Review | Extra User Data

WordPress plugin Extra User Data scored83%from 54 tests.

About plugin

  • Plugin page: extra-user-data
  • Plugin version: 0.14
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 7, 2016
  • Latest release: Nov 5, 2023
  • Number of updates: 12
  • Update frequency: every 230.8 days
  • Top authors: keith_wp (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

70+ active /2,059 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.01MB] [CPU: ▼4.27ms] Passed 4 tests

This is a short check of server-side resources used by Extra User Data
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.24 ▼3.10
Dashboard /wp-admin3.32 ▲0.0147.68 ▼8.63
Posts /wp-admin/edit.php3.37 ▲0.0147.69 ▲3.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.65 ▼1.54
Media Library /wp-admin/upload.php3.24 ▲0.0132.20 ▼3.81

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Extra User Data
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3014.67 ▲0.341.82 ▲0.2138.46 ▼6.56
Dashboard /wp-admin2,194 ▲175.47 ▼0.1490.34 ▼1.5746.79 ▲7.66
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0336.98 ▼1.3232.23 ▼5.13
Add New Post /wp-admin/post-new.php1,534 ▲823.01 ▼0.03682.20 ▲1.6457.45 ▲6.31
Media Library /wp-admin/upload.php1,406 ▲64.19 ▲0.0495.77 ▼10.9841.46 ▼2.67

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/extra-user-data/extra-user-data.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Version format is invalid
  • Tags: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt might help

extra-user-data/extra-user-data.php 92% from 13 tests

Analyzing the main PHP file in "Extra User Data" version 0.14
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 341 characters long)

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
No dangerous file extensions were detected279 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15918279

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity4.92
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin