84% memberlite-shortcodes

Code Review | Memberlite Shortcodes

WordPress plugin Memberlite Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: memberlite-shortc...
  • Plugin version: 1.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Jul 7, 2016
  • Latest release: Sep 21, 2023
  • Number of updates: 21
  • Update frequency: every 125.3 days
  • Top authors: strangerstudios (90.48%)andrewza (9.52%)kimannwall (9.52%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /17,289 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Memberlite Shortcodes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.68 ▼8.06
Dashboard /wp-admin3.31 ▲0.0148.87 ▼5.28
Posts /wp-admin/edit.php3.36 ▲0.0148.73 ▼4.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.37 ▼14.93
Media Library /wp-admin/upload.php3.24 ▲0.0137.94 ▼1.86

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Memberlite Shortcodes: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲3914.57 ▲0.231.81 ▼0.2642.07 ▼0.35
Dashboard /wp-admin2,198 ▲185.59 ▼0.0287.23 ▼13.8339.39 ▼11.68
Posts /wp-admin/edit.php2,100 ▲31.96 ▼0.0638.98 ▲1.0933.97 ▼4.20
Add New Post /wp-admin/post-new.php1,528 ▼023.24 ▲0.02675.05 ▼33.6763.18 ▼6.18
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0199.63 ▼10.9742.54 ▼1.14

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • 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
Even though no errors were found, 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
The following issues need your attention
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_shortcode() in wp-content/plugins/memberlite-shortcodes/shortcodes/banners.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_shortcode() in wp-content/plugins/memberlite-shortcodes/shortcodes/signup.php:115
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_shortcode() in wp-content/plugins/memberlite-shortcodes/shortcodes/tabs.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/memberlite-shortcodes/memberlite-shortcodes.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_shortcode() in wp-content/plugins/memberlite-shortcodes/shortcodes/messages.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_shortcode() in wp-content/plugins/memberlite-shortcodes/shortcodes/columns.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_shortcode() in wp-content/plugins/memberlite-shortcodes/shortcodes/font-awesome.php:64
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_shortcode() in wp-content/plugins/memberlite-shortcodes/shortcodes/subpagelist.php:259
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/memberlite-shortcodes/shortcodes/accordion.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_shortcode() in wp-content/plugins/memberlite-shortcodes/shortcodes/buttons.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Demo of the Recent Posts shortcode [memberlite_recent_posts] with featured images, excerpts, and a three-column layout.), #2 (Demo of the [memberlite_subpagelist] shortcode in a column layout and demo of the [fa] icons.), #3 (Demo of the [memberlite_signup] shortcode for a Paid Memberships Pro membership level in a two-column layout using the [memberlite_banner] with the "body" background.)
You can look at the official readme.txt

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

The entry point to "Memberlite Shortcodes" version 1.3.9 is a PHP file that has certain tags in its header comment area
82 characters long description:
Shortcodes designed to work with the Memberlite Theme and Memberlite Child Themes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,107 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11114152772
CSS31019269
JavaScript28941
PO File13825

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin