84% whws-display-user-meta-shortcode

Code Review | WHWS Display User Meta Shortcode

WordPress plugin WHWS Display User Meta Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: whws-display-user...
  • Plugin version: 0.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 24, 2019
  • Latest release: Sep 16, 2023
  • Number of updates: 19
  • Update frequency: every 78.2 days
  • Top authors: davidmanch (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /1,955 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: ▼0.73ms] Passed 4 tests

Server-side resources used by WHWS Display User Meta Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0150.09 ▼1.39
Dashboard /wp-admin3.58 ▲0.0151.90 ▲0.96
Posts /wp-admin/edit.php3.69 ▲0.0150.10 ▼3.93
Add New Post /wp-admin/post-new.php6.16 ▲0.0199.55 ▲1.43
Media Library /wp-admin/upload.php3.50 ▲0.0142.35 ▲4.79

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

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

Browser metrics Passed 4 tests

WHWS Display User Meta Shortcode: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.37 ▲0.052.12 ▲0.4357.67 ▲14.57
Dashboard /wp-admin2,210 ▲335.66 ▲0.1096.22 ▼6.6242.02 ▼4.18
Posts /wp-admin/edit.php2,112 ▲92.03 ▼0.0033.19 ▼8.7235.42 ▼1.41
Add New Post /wp-admin/post-new.php1,555 ▲2323.31 ▲0.06602.00 ▼33.3858.63 ▲8.20
Media Library /wp-admin/upload.php1,415 ▲124.16 ▼0.0497.01 ▼10.0644.69 ▲0.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/whws-display-user-meta-shortcode/whws-display-user-meta-shortcode.php:12

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: user, display meta, shortcode, meta, usermeta

whws-display-user-meta-shortcode/whws-display-user-meta-shortcode.php Passed 13 tests

The main PHP file in "WHWS Display User Meta Shortcode" ver. 0.6 adds more information about the plugin and also serves as the entry point for this plugin
114 characters long description:
Use this plugin to display various user meta information for the currently logged in user with a simple shortcode.

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 plugin80 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171080

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin