84% pmpro-pods

Code Review | Paid Memberships Pro - Pods Add On

WordPress plugin Paid Memberships Pro - Pods Add On scored84%from 54 tests.

About plugin

  • Plugin page: pmpro-pods
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Oct 26, 2021
  • Latest release: Oct 6, 2023
  • Number of updates: 9
  • Update frequency: every 78.9 days
  • Top authors: sc0ttkclark (55.56%)andrewza (44.44%)strangerstudios (22.22%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,072 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Paid Memberships Pro - Pods Add On
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.12 ▼1.75
Dashboard /wp-admin3.32 ▼0.0243.74 ▼13.20
Posts /wp-admin/edit.php3.37 ▲0.0243.70 ▲1.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.93 ▼15.99
Media Library /wp-admin/upload.php3.25 ▲0.0233.68 ▲1.49

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Paid Memberships Pro - Pods Add On
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.35 ▼0.001.67 ▲0.0241.79 ▲4.02
Dashboard /wp-admin2,204 ▲235.49 ▼0.2381.24 ▼15.5239.91 ▼2.47
Posts /wp-admin/edit.php2,109 ▲92.07 ▲0.1135.72 ▲0.3834.14 ▼0.22
Add New Post /wp-admin/post-new.php1,535 ▲923.09 ▲0.05706.74 ▲25.0061.74 ▲1.62
Media Library /wp-admin/upload.php1,409 ▲64.19 ▲0.02102.29 ▲4.4144.16 ▼1.59

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function PMPro_Pods\\plugin_dir_url() in wp-content/plugins/pmpro-pods/pmpro-pods.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: pods, paid memberships pro

pmpro-pods/pmpro-pods.php 92% from 13 tests

The entry point to "Paid Memberships Pro - Pods Add On" version 1.0.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 232 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,264 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP102698381,151
PO File14486101
CSS12312

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods74
▷ Static methods22.70%
▷ Public methods74100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin