84% um-story-lite

Code Review | Stories for Ultimate Member

WordPress plugin Stories for Ultimate Member scored84%from 54 tests.

About plugin

  • Plugin page: um-story-lite
  • Plugin version: 1.0.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 11, 2018
  • Latest release: May 21, 2023
  • Number of updates: 13
  • Update frequency: every 127.1 days
  • Top authors: suiteplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,794 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼16.61ms] Passed 4 tests

Server-side resources used by Stories for Ultimate Member
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1737.35 ▼1.74
Dashboard /wp-admin3.47 ▲0.1650.20 ▲2.14
Posts /wp-admin/edit.php3.58 ▲0.2245.75 ▼0.78
Add New Post /wp-admin/post-new.php6.05 ▲0.1681.51 ▼66.07
Media Library /wp-admin/upload.php3.39 ▲0.1636.11 ▲4.05
All Stories /wp-admin/edit.php?post_type=um_story3.4334.84
Add New /wp-admin/post-new.php?post_type=um_story3.5246.56

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
um_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Stories for Ultimate Member
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14113.60 ▼0.9611.38 ▲9.5636.22 ▼7.96
Dashboard /wp-admin2,225 ▲485.58 ▲0.0493.85 ▼1.3742.88 ▲1.43
Posts /wp-admin/edit.php2,127 ▲272.00 ▲0.0634.32 ▼4.4936.96 ▼0.47
Add New Post /wp-admin/post-new.php1,549 ▲2323.13 ▲0.02642.65 ▼159.5955.88 ▼1.69
Media Library /wp-admin/upload.php1,418 ▲244.22 ▲0.0394.29 ▼2.4244.46 ▲0.53
All Stories /wp-admin/edit.php?post_type=um_story1,1331.9930.5931.11
Add New /wp-admin/post-new.php?post_type=um_story2,4577.71162.8762.11

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • um_options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: image in wp-content/plugins/um-story-lite/templates/story/story-single.php on line 38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function um_story_lite() in wp-content/plugins/um-story-lite/templates/story/list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/um-story-lite/templates/story/form.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/um-story-lite/um-story-lite.php:443
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/um-story-lite/templates/story/story-single.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function um_story_lite() in wp-content/plugins/um-story-lite/templates/story/story-entry.php:1
    • > PHP Notice
      Undefined variable: image in wp-content/plugins/um-story-lite/templates/story/story-single.php on line 9

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: frontend community, ultimatemember stories, frontend posting ultimate member, ultimate member, ultimate member frontend...

um-story-lite/um-story-lite.php Passed 13 tests

The main PHP file in "Stories for Ultimate Member" ver. 1.0.2.2 adds more information about the plugin and also serves as the entry point for this plugin
82 characters long description:
Allows users to submit articles via the front end on Ultimate Member profile tabs.

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
There were no executable files found in this plugin4,562 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22822722,677
CSS3140381,033
PHP8144486782
Sass14070

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.32
Average class complexity21.00
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods37
▷ Static methods410.81%
▷ Public methods3697.30%
▷ Protected methods12.70%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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