83% novalnet-payment-addon-memberpress

Code Review | MemberPress payment addon - Novalnet AG

WordPress plugin MemberPress payment addon - Novalnet AG scored83%from 54 tests.

About plugin

  • Plugin page: novalnet-payment-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 14, 2022
  • Latest release: Aug 23, 2023
  • Number of updates: 6
  • Update frequency: every 67.7 days
  • Top authors: Novalnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /255 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.22ms] Passed 4 tests

A check of server-side resources used by MemberPress payment addon - Novalnet AG
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0233.74 ▼9.71
Dashboard /wp-admin3.32 ▲0.0247.31 ▼6.37
Posts /wp-admin/edit.php3.37 ▲0.0248.10 ▼1.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.12 ▼11.60
Media Library /wp-admin/upload.php3.24 ▲0.0238.22 ▲2.82

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for MemberPress payment addon - Novalnet AG
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲3914.39 ▲0.042.08 ▼0.1043.19 ▼0.50
Dashboard /wp-admin2,206 ▲345.51 ▼0.1582.74 ▼27.0839.87 ▼8.30
Posts /wp-admin/edit.php2,111 ▲112.02 ▲0.0336.35 ▼0.9334.71 ▼1.04
Add New Post /wp-admin/post-new.php1,532 ▲623.56 ▲0.37704.18 ▲16.7359.91 ▲2.01
Media Library /wp-admin/upload.php1,411 ▲114.11 ▼0.09111.96 ▲11.7047.79 ▲1.40

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/novalnet-payment-addon-memberpress/includes/MeprNovalnetGateway.php
    • > /wp-content/plugins/novalnet-payment-addon-memberpress/memberpress-novalnet-addon.php
    • > /wp-content/plugins/novalnet-payment-addon-memberpress/app/emails/MeprNovalnetPaymentReceiptEmail.php
    • > /wp-content/plugins/novalnet-payment-addon-memberpress/app/views/emails/novalnet_payment_receipt.php
    • > /wp-content/plugins/novalnet-payment-addon-memberpress/class-meprnovalnet.php

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

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: payment gateway, novalnet payment, payments, credit cards

novalnet-payment-addon-memberpress/memberpress-novalnet-addon.php 77% from 13 tests

The primary PHP file in "MemberPress payment addon - Novalnet AG" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("novalnet-payment-addon-memberpress.php" instead of "memberpress-novalnet-addon.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 216 characters long)

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
Everything looks great! No dangerous files found in this plugin3,380 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP62067102,671
PO File1159182530
JavaScript1617178
SVG1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity89.25
▷ Minimum class complexity1.00
▷ Maximum class complexity246.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods101
▷ Static methods65.94%
▷ Public methods9998.02%
▷ Protected methods10.99%
▷ Private methods10.99%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG files were detected