68% inspiry-memberships

Code Review | RealHomes Memberships

WordPress plugin RealHomes Memberships scored68%from 54 tests.

About plugin

  • Plugin page: inspiry-memberships
  • Plugin version: 3.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2017
  • Latest release: Nov 29, 2023
  • Number of updates: 72
  • Update frequency: every 34.3 days
  • Top authors: fahidjavid (86.11%)saqibsarwar (15.28%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /29,226 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲4.41MB] [CPU: ▲23.18ms] Passed 4 tests

Server-side resources used by RealHomes Memberships
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /7.84 ▲4.3857.98 ▲19.57
Dashboard /wp-admin7.73 ▲4.4373.69 ▲24.28
Posts /wp-admin/edit.php7.85 ▲4.4974.96 ▲25.88
Add New Post /wp-admin/post-new.php10.30 ▲4.41119.53 ▲32.08
Media Library /wp-admin/upload.php7.64 ▲4.4159.61 ▲22.97
New Membership /wp-admin/post-new.php?post_type=ims_membership7.7964.90
Memberships /wp-admin/edit.php?post_type=ims_membership7.7163.69
Receipts /wp-admin/edit.php?post_type=ims_receipt7.7172.04
Settings /wp-admin/admin.php?page=ims_settings7.6361.44
New Receipt /wp-admin/post-new.php?post_type=ims_receipt7.7964.63

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 400 new files
Database: no new tables, 10 new options
New WordPress options
ims_basic_settings
can_compress_scripts
ims_paypal_settings
widget_recent-posts
ims_wire_settings
theysaidso_admin_options
widget_recent-comments
db_upgraded
ims_stripe_settings
widget_theysaidso_widget

Browser metrics Passed 4 tests

RealHomes Memberships: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,969 ▲20714.40 ▼0.171.71 ▼0.0535.78 ▼10.71
Dashboard /wp-admin2,374 ▲1936.14 ▲0.37119.07 ▲3.8643.87 ▼1.62
Posts /wp-admin/edit.php2,302 ▲1993.32 ▲1.3253.85 ▲14.7136.81 ▲0.43
Add New Post /wp-admin/post-new.php1,558 ▲3223.36 ▲0.28672.29 ▼106.2834.87 ▼23.62
Media Library /wp-admin/upload.php1,439 ▲394.13 ▼0.1581.94 ▼28.3542.38 ▼6.76
New Membership /wp-admin/post-new.php?post_type=ims_membership1,8743.5161.7735.79
Memberships /wp-admin/edit.php?post_type=ims_membership1,2763.3243.3626.32
Receipts /wp-admin/edit.php?post_type=ims_receipt1,3003.3848.4827.29
Settings /wp-admin/admin.php?page=ims_settings1,4423.1152.0677.05
New Receipt /wp-admin/post-new.php?post_type=ims_receipt1,8413.4365.1331.49

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
These items require your attention
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_theysaidso_widget
    • ims_wire_settings
    • widget_recent-comments
    • ims_basic_settings
    • can_compress_scripts
    • widget_recent-posts
    • ims_stripe_settings
    • theysaidso_admin_options
    • db_upgraded
    • ims_paypal_settings

Smoke tests 50% 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
Please fix the following items
  • 293× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/inspiry-memberships/resources/stripe-php-12-4-0-sdk/lib/Service/MandateService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/inspiry-memberships/resources/stripe-php-12-4-0-sdk/lib/TaxCode.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/inspiry-memberships/resources/stripe-php-12-4-0-sdk/lib/Service/ReviewService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/inspiry-memberships/resources/stripe-php-12-4-0-sdk/lib/Service/Terminal/LocationService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/inspiry-memberships/resources/stripe-php-12-4-0-sdk/lib/Service/Treasury/ReceivedCreditService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/inspiry-memberships/resources/stripe-php-12-4-0-sdk/lib/Service/BalanceTransactionService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/inspiry-memberships/resources/stripe-php-12-4-0-sdk/lib/Issuing/Authorization.php:39
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/inspiry-memberships/resources/stripe-php-12-4-0-sdk/lib/Issuing/Dispute.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/inspiry-memberships/resources/stripe-php-12-4-0-sdk/lib/ExchangeRate.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/inspiry-memberships/resources/stripe-php-12-4-0-sdk/lib/Reporting/ReportType.php:27

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=ims_settings
    • > Network (severe)
    http://condominium.realhomes.local/wp-content/plugins/easy-real-estate//images/logo.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

inspiry-memberships/inspiry-memberships.php Passed 13 tests

This is the main PHP file of "RealHomes Memberships" version 3.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
101 characters long description:
Provides functionality to create membership packages for real estate RealHomes theme by InspiryThemes

Code Analysis 5% from 3 tests

File types 0% from 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
Please make sure to remedy the following
  • Do not include executable or dangerous files in your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/inspiry-memberships/resources/stripe-php-12-4-0-sdk/data/ca-certificates.crt
19,990 lines of code in 378 files:
LanguageFilesBlank linesComment linesLines of code
PHP3543,82115,51214,293
PO File72,1163,5943,437
Markdown282301,799
JavaScript25837297
CSS52721109
JSON10048
SVG7007

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.99
▷ Minimum class complexity1.00
▷ Maximum class complexity77.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces40
Interfaces9
Traits9
Classes326
▷ Abstract classes103.07%
▷ Concrete classes31696.93%
▷ Final classes00.00%
Methods1,132
▷ Static methods21018.55%
▷ Public methods1,04191.96%
▷ Protected methods433.80%
▷ Private methods484.24%
Functions21
▷ Named functions838.10%
▷ Anonymous functions1361.90%
Constants1,655
▷ Global constants80.48%
▷ Class constants1,64799.52%
▷ Public constants1,647100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/img/paypal-badges.png3.73KB2.57KB▼ 31.21%
resources/img/checkout-paypal.png3.96KB2.62KB▼ 34.01%
resources/img/inspiry-logo.png1.81KB1.90KB0.00%