84% pmpro-aweber

Code Review | Paid Memberships Pro - AWeber Add On

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

About plugin

  • Plugin page: pmpro-aweber
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Feb 26, 2014
  • Latest release: Jun 28, 2023
  • Number of updates: 20
  • Update frequency: every 171.1 days
  • Top authors: strangerstudios (80%)andrewza (15%)dlparker1005 (15%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /17,539 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.07MB] [CPU: ▼5.61ms] Passed 4 tests

A check of server-side resources used by Paid Memberships Pro - AWeber Add On
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.10 ▼10.75
Dashboard /wp-admin3.40 ▲0.1048.46 ▲0.38
Posts /wp-admin/edit.php3.45 ▲0.1050.49 ▲0.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.15 ▼11.97
Media Library /wp-admin/upload.php3.26 ▲0.0338.99 ▼0.11
PMPro AWeber /wp-admin/options-general.php?page=pmproaw_options3.2331.45

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

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

Browser metrics Passed 4 tests

Paid Memberships Pro - AWeber Add On: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.39 ▲0.021.80 ▲0.0542.15 ▼0.49
Dashboard /wp-admin2,215 ▲385.63 ▼0.0996.15 ▼7.7439.89 ▼2.41
Posts /wp-admin/edit.php2,124 ▲242.02 ▲0.0139.06 ▲1.9036.21 ▼0.54
Add New Post /wp-admin/post-new.php1,545 ▲1723.19 ▼0.02666.49 ▲20.9855.39 ▲6.39
Media Library /wp-admin/upload.php1,423 ▲264.16 ▼0.04103.04 ▼3.3245.28 ▲0.16
PMPro AWeber /wp-admin/options-general.php?page=pmproaw_options9632.0123.4332.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • pmproaw_options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 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 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberAPIBase' not found in wp-content/plugins/pmpro-aweber/includes/aweber_api/aweber_response.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/pmpro-aweber/includes/aweber_api/aweber_collection.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-aweber/pmpro-aweber.php:46
    • > PHP Fatal error
      Uncaught Error: Interface 'AWeberOAuthAdapter' not found in wp-content/plugins/pmpro-aweber/includes/aweber_api/oauth_application.php:57
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/pmpro-aweber/includes/aweber_api/aweber_entry.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (General settings for all members/subscribers list.), #2 (Membership-level specific list subscription settings.)
You can look at the official readme.txt

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

The entry point to "Paid Memberships Pro - AWeber Add On" version 1.3.3 is a PHP file that has certain tags in its header comment area
70 characters long description:
Add users and members to AWeber lists based on their membership level.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,583 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP123739941,583

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.76
▷ Minimum class complexity1.00
▷ Maximum class complexity41.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods122
▷ Static methods21.64%
▷ Public methods10384.43%
▷ Protected methods1814.75%
▷ Private methods10.82%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected