82% iceyi-members-only

Code Review | My Members Only - Membership for WordPress

WordPress plugin My Members Only - Membership for WordPress scored 82% from 54 tests.

About plugin

  • Plugin page: iceyi-members-only
  • Plugin version: 6.8.5
  • PHP compatiblity: 5.4++
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.7
  • WordPress version: 6.3.1
  • First release: Jun 23, 2014
  • Latest release: Mar 11, 2021
  • Number of updates: 65
  • Update frequency: every 37.7 days
  • Top authors: icelayer (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 6,328 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.97ms] Passed 4 tests

An overview of server-side resources used by My Members Only - Membership for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0534.99 ▼6.59
Dashboard /wp-admin3.34 ▲0.0444.65 ▼4.20
Posts /wp-admin/edit.php3.39 ▲0.0445.44 ▼2.17
Add New Post /wp-admin/post-new.php6.03 ▲0.1594.70 ▼6.92
Media Library /wp-admin/upload.php3.26 ▲0.0433.75 ▲0.54
Members Shortcode /wp-admin/edit.php?post_type=membersonly&page=my-members-only-shortcode3.2727.27
Add New Post /wp-admin/post-new.php?post_type=membersonly6.0283.43
Category /wp-admin/edit-tags.php?taxonomy=taxonomy&post_type=membersonly3.2629.03
Members Only Posts /wp-admin/edit.php?post_type=membersonly3.3133.31

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for My Members Only - Membership for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲10013.24 ▼1.411.97 ▲0.3739.40 ▼1.80
Dashboard /wp-admin2,241 ▲494.85 ▼0.11104.58 ▼4.4440.57 ▼4.87
Posts /wp-admin/edit.php2,124 ▲352.04 ▼0.0239.49 ▼0.7434.97 ▼1.93
Add New Post /wp-admin/post-new.php1,548 ▲1523.35 ▲0.19607.60 ▼69.9049.58 ▼10.41
Media Library /wp-admin/upload.php1,426 ▲414.29 ▲0.06100.60 ▲0.2946.43 ▲3.12
Members Shortcode /wp-admin/edit.php?post_type=membersonly&page=my-members-only-shortcode8902.1823.2528.65
Add New Post /wp-admin/post-new.php?post_type=membersonly1,56517.09911.3433.76
Category /wp-admin/edit-tags.php?taxonomy=taxonomy&post_type=membersonly1,2942.1427.7129.91
Members Only Posts /wp-admin/edit.php?post_type=membersonly1,1501.9329.9228.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iceyi-members-only/includes/protected/membersonly.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/iceyi-members-only/includes/shortcode/membersonly.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/iceyi-members-only/includes/protected/protected-filter.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/iceyi-members-only/includes/admin/footer.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/iceyi-members-only/includes/admin/pages/my-members-only-admin.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/iceyi-members-only/includes/shortcode/qw_members.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/iceyi-members-only/includes/admin/head.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iceyi-members-only/includes/protected/members-category.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 73% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (...), #2 (..)
  • Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
You can take inspiration from this readme.txt

iceyi-members-only/iceyi-members-only-main.php 54% from 13 tests

The entry point to "My Members Only - Membership for WordPress" version 6.8.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Requires PHP: Please use periods and digits for the required version (ex. "7.0" instead of "5.4+")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 273 characters long)
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("iceyi-members-only.php" instead of "iceyi-members-only-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected327 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP1048142327

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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 methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions981.82%
▷ Anonymous functions218.18%
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
PNG images were not found in this plugin