83% ultimate-member-post-status

Code Review | Ultimate Member - Post Status

WordPress plugin Ultimate Member - Post Status scored83%from 54 tests.

About plugin

  • Plugin page: ultimate-member-p...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 6.3.1
  • First release: Apr 26, 2016
  • Latest release: May 1, 2016
  • Number of updates: 31
  • Update frequency: every 0.2 days
  • Top authors: umplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,669 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
Install script ran successfully

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

An overview of server-side resources used by Ultimate Member - Post Status
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.82 ▼0.95
Dashboard /wp-admin3.31 ▲0.0043.09 ▼6.25
Posts /wp-admin/edit.php3.36 ▲0.0045.74 ▼2.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.15 ▼7.05
Media Library /wp-admin/upload.php3.23 ▲0.0034.78 ▲3.09

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate Member - Post Status
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.33 ▼0.995.88 ▲4.1743.96 ▼0.74
Dashboard /wp-admin2,206 ▲184.85 ▼1.01109.98 ▲0.8341.65 ▼7.04
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0141.13 ▲3.0635.65 ▲1.05
Add New Post /wp-admin/post-new.php1,514 ▼2917.68 ▼0.61654.55 ▼5.1657.59 ▲6.21
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0093.75 ▼10.2039.98 ▼4.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at 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 register_activation_hook() in wp-content/plugins/ultimate-member-post-status/um-post-status.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === ultimate-member-post-status === )
You can take inspiration from this readme.txt

ultimate-member-post-status/um-post-status.php 85% from 13 tests

The main file in "Ultimate Member - Post Status" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("ultimate-member-post-status.php" instead of "um-post-status.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin925 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21,11948763
PHP2323793
CSS113469

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity3.00
▷ Minimum method complexity3.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods1100.00%
▷ Public methods1100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin