10% buddypress-to-aweber-integration

Code Review | Buddypress to Aweber

WordPress plugin Buddypress to Aweber scored 10% from 54 tests.

About plugin

  • Plugin page: buddypress-to-awe...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.2
  • WordPress version: 6.3.1
  • First release: Jul 20, 2015
  • Latest release: Jul 20, 2015
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: vimes1984 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,097 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/buddypress-to-aweber-integration/classes/class-list-options.php+80
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.96MB] [CPU: ▼60.88ms] Passed 4 tests

A check of server-side resources used by Buddypress to Aweber
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.52 ▼32.91
Dashboard /wp-admin2.05 ▼1.265.65 ▼54.28
Posts /wp-admin/edit.php2.05 ▼1.317.17 ▼46.06
Add New Post /wp-admin/post-new.php2.05 ▼3.847.93 ▼110.27
Media Library /wp-admin/upload.php2.05 ▼1.188.71 ▼28.28

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Buddypress to Aweber
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7014.65 ▲0.262.02 ▼0.6488.85 ▼106.44
Dashboard /wp-admin2,207 ▲95.77 ▼0.21162.85 ▼99.40108.89 ▲1.28
Posts /wp-admin/edit.php2,108 ▲382.03 ▼0.0588.52 ▲3.98179.96 ▲54.62
Add New Post /wp-admin/post-new.php1,452 ▲1522.73 ▼0.02924.26 ▼50.44198.94 ▲108.27
Media Library /wp-admin/upload.php1,392 ▲74.16 ▲0.05225.42 ▲44.88411.07 ▲276.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/buddypress-to-aweber-integration/classes/class-list-options.php+80
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/buddypress-to-aweber-integration/views/public.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/buddypress-to-aweber-integration/includes/aweber_api/aweber_entry.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/buddypress-to-aweber-integration/includes/aweber_api/aweber_collection.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/buddypress-to-aweber-integration/views/adminview/clear.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberAPIBase' not found in wp-content/plugins/buddypress-to-aweber-integration/includes/aweber_api/aweber_response.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'AdminFunctions' not found in wp-content/plugins/buddypress-to-aweber-integration/views/admin.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/buddypress-to-aweber-integration/views/adminview/fields.php:2
    • > PHP Fatal error
      Uncaught Error: Interface 'AWeberOAuthAdapter' not found in wp-content/plugins/buddypress-to-aweber-integration/includes/aweber_api/oauth_application.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/buddypress-to-aweber-integration/views/adminview/options.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: aweber, buddypress

buddypress-to-aweber-integration/buddypress-to-aweber.php 85% from 13 tests

Analyzing the main PHP file in "Buddypress to Aweber" version 1.0.1
Please make the necessary changes and 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: It is recommended to name the main PHP file as the plugin slug ("buddypress-to-aweber-integration.php" instead of "buddypress-to-aweber.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,200 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP255761,4831,753
JavaScript5125402378
CSS113358
JSON20010
Markdown1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.04
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods172
▷ Static methods105.81%
▷ Public methods15288.37%
▷ Protected methods1810.47%
▷ Private methods21.16%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin