79% pmpro-zapier

Code Review | Paid Memberships Pro - Zapier Add On

WordPress plugin Paid Memberships Pro - Zapier Add On scored79%from 54 tests.

About plugin

  • Plugin page: pmpro-zapier
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 19, 2018
  • Latest release: Apr 17, 2023
  • Number of updates: 18
  • Update frequency: every 101.4 days
  • Top authors: andrewza (61.11%)strangerstudios (44.44%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /16,269 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
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.68ms] Passed 4 tests

A check of server-side resources used by Paid Memberships Pro - Zapier Add On
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1343.69 ▲0.14
Dashboard /wp-admin3.43 ▲0.0951.49 ▼13.17
Posts /wp-admin/edit.php3.55 ▲0.1952.27 ▼3.08
Add New Post /wp-admin/post-new.php6.01 ▲0.1395.96 ▼10.34
Media Library /wp-admin/upload.php3.36 ▲0.1339.95 ▼0.11
PMPro Zapier /wp-admin/admin.php?page=pmpro-zapier3.3035.10

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
recovery_mode_email_last_sent
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Paid Memberships Pro - Zapier Add On: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.35 ▲0.001.53 ▼0.8342.90 ▼2.58
Dashboard /wp-admin2,198 ▲215.59 ▲0.0390.71 ▼6.4038.58 ▼4.24
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0739.36 ▼0.2735.80 ▼3.40
Add New Post /wp-admin/post-new.php1,528 ▼923.68 ▲5.44661.71 ▲51.7452.55 ▲5.21
Media Library /wp-admin/upload.php1,400 ▼34.24 ▲0.04105.81 ▲0.8947.26 ▲5.04
PMPro Zapier /wp-admin/admin.php?page=pmpro-zapier6801.127.5416.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • recovery_mode_email_last_sent
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=pmpro-zapier
    • > Warning in wp-content/plugins/pmpro-zapier/includes/settings.php+15
    Use of undefined constant PMPRO_DIR - assumed 'PMPRO_DIR' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=pmpro-zapier
    • > Warning in wp-content/plugins/pmpro-zapier/includes/settings.php+15
    require_once(PMPRO_DIR/adminpages/admin_header.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=pmpro-zapier
    • > Compile error in wp-content/plugins/pmpro-zapier/includes/settings.php+15
    require_once(): Failed opening required 'PMPRO_DIR/adminpages/admin_header.php' (include_path='.:/usr/share/php')

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pmpro-zapier/pmpro-zapier.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-zapier/includes/settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-zapier/includes/admin.php:6

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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: pmpro, zapier, paid memberships pro

pmpro-zapier/pmpro-zapier.php Passed 13 tests

The main PHP file in "Paid Memberships Pro - Zapier Add On" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
83 characters long description:
Integrate activity on your membership site with thousands of other apps via Zapier.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin878 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5151200735
PO File16571143

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods975.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin