89% user-status-shortcode

Code Review | User Status Shortcode

WordPress plugin User Status Shortcode scored89%from 54 tests.

About plugin

  • Plugin page: user-status-short...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.1
  • WordPress version: 6.3.1
  • First release: May 12, 2013
  • Latest release: Jan 22, 2016
  • Number of updates: 3
  • Update frequency: every 328.4 days
  • Top authors: reedwf (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /3,734 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by User Status Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.96 ▼5.69
Dashboard /wp-admin3.31 ▲0.0052.29 ▼5.38
Posts /wp-admin/edit.php3.36 ▲0.0047.82 ▼1.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.19 ▼9.18
Media Library /wp-admin/upload.php3.23 ▲0.0040.51 ▲1.24

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
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for User Status Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.68 ▲0.381.80 ▲0.0043.48 ▼4.75
Dashboard /wp-admin2,221 ▲245.83 ▲0.96100.94 ▼58.0441.33 ▼6.71
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0039.16 ▲1.0242.43 ▲2.96
Add New Post /wp-admin/post-new.php1,526 ▼1917.54 ▼5.51613.76 ▼67.4352.80 ▼11.57
Media Library /wp-admin/upload.php1,403 ▲34.29 ▲0.07110.44 ▲2.1548.75 ▲5.47

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: customize, inbound, shortcode, widget, login...

user-status-shortcode/wordpress-user-logged-in-shortcode.php 85% from 13 tests

The primary PHP file in "User Status Shortcode" version 0.1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("user-status-shortcode.php" instead of "wordpress-user-logged-in-shortcode.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 181 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP162017

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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