72% aweber-web-form-widget

Code Review | AWeber – Free Sign Up Form and Landing Page Builder Plugin for Lead Generation and Email Newsletter Growth

WordPress plugin AWeber – Free Sign Up Form and Landing Page Builder Plugin for Lead Generation and Email Newsletter Growth scored72%from 54 tests.

About plugin

  • Plugin page: aweber-web-form-w...
  • Plugin version: 7.3.11
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Nov 17, 2010
  • Latest release: Nov 21, 2023
  • Number of updates: 144
  • Update frequency: every 33.4 days
  • Top authors: aweber (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

10,000+ active /584,676 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.79MB] [CPU: ▲1.37ms] Passed 4 tests

Server-side resources used by AWeber – Free Sign Up Form and Landing Page Builder Plugin for Lead Generation and Email Newsletter Growth
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.26 ▲0.7946.03 ▲5.76
Dashboard /wp-admin4.09 ▲0.7956.33 ▲5.87
Posts /wp-admin/edit.php4.20 ▲0.8452.62 ▲4.13
Add New Post /wp-admin/post-new.php6.69 ▲0.8090.93 ▼8.27
Media Library /wp-admin/upload.php4.01 ▲0.7839.45 ▲3.84

Server storage [IO: ▲0.39MB] [DB: ▲1.37MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
AWeberWebformPluginAdminOptions
dashboard_widget_options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
AWeberWebformPluginWidgetOptions

Browser metrics Passed 4 tests

A check of browser resources used by AWeber – Free Sign Up Form and Landing Page Builder Plugin for Lead Generation and Email Newsletter Growth
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲18014.61 ▼0.092.15 ▲0.4032.67 ▼10.33
Dashboard /wp-admin2,332 ▲1545.65 ▲0.0994.79 ▼15.5788.85 ▲45.72
Posts /wp-admin/edit.php2,140 ▲372.19 ▲0.1637.82 ▼1.8533.53 ▼3.99
Add New Post /wp-admin/post-new.php6,227 ▲4,70119.04 ▼4.16935.37 ▲297.5442.52 ▼15.13
Media Library /wp-admin/upload.php1,436 ▲334.24 ▲0.0797.31 ▼1.0974.71 ▲30.18
Settings /wp-admin/aweber.php260.410.1113.34
Forms /wp-admin/aweber.php?page=aweber_web_form260.410.066.25
Landing Pages /wp-admin/aweber.php?page=aweber_landing_page260.410.147.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • dashboard_widget_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/aweber-web-form-widget/php/aweber_header_section.php
    • > /wp-content/plugins/aweber-web-form-widget/php/sdk/aweber-service-worker.js.php
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AWeberWebFormPluginNamespace\\admin_url() in wp-content/plugins/aweber-web-form-widget/php/aweber_webform_plugin.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aweber-web-form-widget/php/aweber_landing_page.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/aweber-web-form-widget/php/aweber_elementor_widget.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aweber-web-form-widget/php/aweber_system_info.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberWebFormPluginNamespace\\AWeberAPIBase' not found in wp-content/plugins/aweber-web-form-widget/php/aweber_api/aweber_response.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_field() in wp-content/plugins/aweber-web-form-widget/php/template/aweber_landing_page_template.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberWebFormPluginNamespace\\AWeberResponse' not found in wp-content/plugins/aweber-web-form-widget/php/aweber_api/aweber_collection.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Classes\\Action_Base' not found in wp-content/plugins/aweber-web-form-widget/php/aweber_elementor_form_action.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aweber-web-form-widget/php/aweber_track_signup_form.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberWebFormPluginNamespace\\AWeberResponse' not found in wp-content/plugins/aweber-web-form-widget/php/aweber_api/aweber_entry.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/aweber.php
    • > Network (severe)
    wp-admin/aweber.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/aweber.php?page=aweber_web_form
    • > Network (severe)
    wp-admin/aweber.php?page=aweber_web_form - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/aweber.php?page=aweber_landing_page
    • > Network (severe)
    wp-admin/aweber.php?page=aweber_landing_page - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
The official readme.txt might help

aweber-web-form-widget/aweber.php 92% from 13 tests

"AWeber – Free Sign Up Form and Landing Page Builder Plugin for Lead Generation and Email Newsletter Growth" version 7.3.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("aweber-web-form-widget.php" instead of "aweber.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected6,709 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP257611,3984,254
JavaScript93021771,866
CSS3147546
SVG20025
JSON10018

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.48
▷ Minimum class complexity1.00
▷ Maximum class complexity271.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces2
Interfaces3
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
Methods251
▷ Static methods20.80%
▷ Public methods20280.48%
▷ Protected methods218.37%
▷ Private methods2811.16%
Functions23
▷ Named functions2191.30%
▷ Anonymous functions28.70%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.03MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
AWeber_widget_black.png14.42KB14.24KB▼ 1.23%
AWeber_widget_blue.png7.34KB6.24KB▼ 14.97%
AWeber_widget_white.png5.48KB6.31KB0.00%
AWeber_white_logo.png0.35KB0.70KB0.00%