94% user-shortcodes

Code Review | User Shortcodes

WordPress plugin User Shortcodes scored 94% from 53 tests.

About plugin

  • Plugin page: user-shortcodes
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 5.8.1
  • First release: Oct 14, 2013
  • Latest release: Apr 2, 2015
  • Number of updates: 20
  • Update frequency: every 26.8 days
  • Top authors: happyplugins (100%)

Code review

53 tests

User reviews

12 reviews

Install metrics

2,000+ active / 15,305 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼269.33ms] Passed 4 tests

This is a short check of server-side resources used by User Shortcodes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.15 ▲14.63
Dashboard /wp-admin3.06 ▲0.0142.62 ▼2.25
Posts /wp-admin/edit.php3.11 ▲0.0140.02 ▲0.41
Add New Post /wp-admin/post-new.php5.42 ▼0.0089.51 ▼1,066.56
Media Library /wp-admin/upload.php3.00 ▼0.0031.73 ▼8.91

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by User Shortcodes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,650 ▲4415.91 ▲0.067.45 ▼0.6648.30 ▲3.92
Dashboard /wp-admin2,931 ▲785.90 ▲0.06131.99 ▲2.3895.73 ▼6.98
Posts /wp-admin/edit.php2,706 ▼02.70 ▲0.0060.98 ▼8.2488.04 ▼1.63
Add New Post /wp-admin/post-new.php1,653 ▼20018.59 ▼0.52351.45 ▼27.97113.47 ▲8.51
Media Library /wp-admin/upload.php1,775 ▼05.01 ▼0.01147.09 ▼7.83109.81 ▼2.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/user-shortcodes/core/shortcodes.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
3 plugin tags: user information, user, user shortcodes

user-shortcodes/user-shortcodes.php Passed 13 tests

This is the main PHP file of "User Shortcodes" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Display user information using shortcodes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin70 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4943470

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin