84% extended-shortcodes-for-ultimate-membership-pro

Code Review | Extended Shortcodes for Ultimate Membership Pro

WordPress plugin Extended Shortcodes for Ultimate Membership Pro scored 84% from 54 tests.

About plugin

  • Plugin page: extended-shortcod...
  • Plugin version: 1.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.1-6.2
  • WordPress version: 6.3.1
  • First release: Aug 25, 2022
  • Latest release: Apr 20, 2023
  • Number of updates: 12
  • Update frequency: every 19.8 days
  • Top authors: wpindeed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 730 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.98ms] Passed 4 tests

A check of server-side resources used by Extended Shortcodes for Ultimate Membership Pro
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.68 ▼8.74
Dashboard /wp-admin3.31 ▲0.0145.81 ▼4.11
Posts /wp-admin/edit.php3.36 ▲0.0144.11 ▼4.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.69 ▼14.66
Media Library /wp-admin/upload.php3.23 ▲0.0134.12 ▼2.97

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Extended Shortcodes for Ultimate Membership Pro: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.22 ▼1.141.66 ▼0.5044.14 ▼1.03
Dashboard /wp-admin2,210 ▲245.83 ▲0.9097.56 ▼13.4739.70 ▼2.62
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0335.38 ▼4.9835.67 ▲0.54
Add New Post /wp-admin/post-new.php1,518 ▼217.69 ▼5.45672.17 ▼25.3753.70 ▼4.67
Media Library /wp-admin/upload.php1,392 ▲14.24 ▲0.0294.75 ▼12.5642.67 ▼5.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extended-shortcodes-for-ultimate-membership-pro/extended-shortcodes-for-ultimate-membership-pro.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/extended-shortcodes-for-ultimate-membership-pro/views/admin.php:2

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: customize memberships, ultimate membership pro, registration, login, extend...

extended-shortcodes-for-ultimate-membership-pro/extended-shortcodes-for-ultimate-membership-pro.php 92% from 13 tests

Analyzing the main PHP file in "Extended Shortcodes for Ultimate Membership Pro" version 1.6
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 199 characters long)

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
Everything looks great! No dangerous files found in this plugin10,521 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,552
PHP15157365951
JSON10011
CSS2286
JavaScript1041

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.12
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods56
▷ Static methods916.07%
▷ Public methods5394.64%
▷ Protected methods00.00%
▷ Private methods35.36%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin