89% convertkit-for-paid-memberships-pro

Code Review | Paid Memberships Pro - ConvertKit Integration

WordPress plugin Paid Memberships Pro - ConvertKit Integration scored89%from 54 tests.

About plugin

  • Plugin page: convertkit-for-pa...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 7, 2016
  • Latest release: Apr 12, 2023
  • Number of updates: 19
  • Update frequency: every 136.6 days
  • Top authors: nathanbarry (57.89%)strangerstudios (26.32%)andrewza (21.05%)growdev (10.53%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,941 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼7.27ms] Passed 4 tests

This is a short check of server-side resources used by Paid Memberships Pro - ConvertKit Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1743.72 ▼3.11
Dashboard /wp-admin3.48 ▲0.1353.52 ▼10.44
Posts /wp-admin/edit.php3.59 ▲0.2449.75 ▼2.09
Add New Post /wp-admin/post-new.php6.06 ▲0.1789.98 ▼13.45
Media Library /wp-admin/upload.php3.40 ▲0.1737.59 ▲1.29
PMPro ConvertKit /wp-admin/options-general.php?page=convertkit-pmp3.3735.31

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Paid Memberships Pro - ConvertKit Integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.15 ▼1.201.78 ▲0.0645.11 ▼3.31
Dashboard /wp-admin2,207 ▲225.82 ▼0.04101.13 ▼16.6339.82 ▼2.37
Posts /wp-admin/edit.php2,096 ▲71.97 ▼0.0535.86 ▼3.6533.28 ▼2.90
Add New Post /wp-admin/post-new.php1,540 ▲1218.32 ▼0.05655.25 ▼4.6754.79 ▲2.34
Media Library /wp-admin/upload.php1,392 ▲74.23 ▼0.0194.38 ▼20.4641.33 ▼4.03
PMPro ConvertKit /wp-admin/options-general.php?page=convertkit-pmp8431.7124.9328.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: convertkit, pmp, paid memberships pro, pmpro, marketing...

convertkit-for-paid-memberships-pro/convertkit-pmp.php 85% from 13 tests

Analyzing the main PHP file in "Paid Memberships Pro - ConvertKit Integration" version 1.2.0
It is important to fix the following:
  • 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
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("convertkit-for-paid-memberships-pro.php" instead of "convertkit-pmp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected749 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP10292722726
PO File15723

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity11.86
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods48
▷ Static methods24.17%
▷ Public methods4491.67%
▷ Protected methods00.00%
▷ Private methods48.33%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected