68% aweber-wp

Code Review | AWeber Forms by Optin Cat

WordPress plugin AWeber Forms by Optin Cat scored 68% from 54 tests.

About plugin

  • Plugin page: aweber-wp
  • Plugin version: 2.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-6.3
  • WordPress version: 6.3.1
  • First release: Feb 14, 2015
  • Latest release: Sep 27, 2023
  • Number of updates: 140
  • Update frequency: every 22.9 days
  • Top authors: davidhme (62.14%)fatcatapps (30.71%)flippy101 (5.71%)RyanNovotny (3.57%)

Code review

54 tests

User reviews

18 reviews

Install metrics

800+ active / 56,560 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.96MB] [CPU: ▲5.24ms] Passed 4 tests

This is a short check of server-side resources used by AWeber Forms by Optin Cat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.44 ▲0.9853.67 ▲13.38
Dashboard /wp-admin4.28 ▲0.9753.80 ▲1.15
Posts /wp-admin/edit.php4.31 ▲0.9658.67 ▲12.22
Add New Post /wp-admin/post-new.php6.85 ▲0.96104.15 ▼2.57
Media Library /wp-admin/upload.php4.18 ▲0.9645.07 ▲10.17
Upgrade to Premium /wp-admin/edit.php?post_type=easy-opt-ins&page=eoi_premium_upgrade3.9929.77
Add New /wp-admin/post-new.php?post_type=easy-opt-ins7.2880.06
All Optin Forms /wp-admin/edit.php?post_type=easy-opt-ins4.2341.49
Subscribers /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_subscribers_page4.0938.87
Settings /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_settings_page4.0938.72

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 251 new files
Database: 2 new tables, 10 new options
New tables
wp_fca_eoi_subscribers
wp_fca_eoi_activity
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
fca_eoi_allow_customform
widget_recent-posts
widget_easy-opt-in-widget
fca_eoi_settings
fca_eoi_subscribers_table_ver
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by AWeber Forms by Optin Cat
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,097 ▲36214.54 ▲0.172.44 ▲0.7036.67 ▼5.68
Dashboard /wp-admin2,483 ▲2956.33 ▲1.47125.62 ▲17.5294.62 ▲53.26
Posts /wp-admin/edit.php2,143 ▲542.07 ▲0.0639.50 ▲2.2437.30 ▲4.80
Add New Post /wp-admin/post-new.php6,644 ▲5,10124.34 ▲6.00898.99 ▲289.0942.43 ▼5.93
Media Library /wp-admin/upload.php1,436 ▲514.25 ▲0.0696.18 ▼10.4875.62 ▲30.14
Upgrade to Premium /wp-admin/edit.php?post_type=easy-opt-ins&page=eoi_premium_upgrade1,0896.47263.64154.04
Add New /wp-admin/post-new.php?post_type=easy-opt-ins6,8597.50316.2989.23
All Optin Forms /wp-admin/edit.php?post_type=easy-opt-ins1,2612.1737.9641.38
Subscribers /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_subscribers_page9691.6826.0126.01
Settings /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_settings_page1,2533.2689.5942.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_fca_eoi_subscribers
    • wp_fca_eoi_activity
  • Zombie WordPress options detected upon uninstall: 9 options
    • db_upgraded
    • fca_eoi_settings
    • widget_theysaidso_widget
    • can_compress_scripts
    • fca_eoi_subscribers_table_ver
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_easy-opt-in-widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 66× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Use of undefined constant FCA_EOI_PLUGIN_DIR - assumed 'FCA_EOI_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/aweber-wp/layouts/common/layout_16/layout.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php' (include_path='.:/usr/share/php') in wp-content/plugins/aweber-wp/layouts/common/layout_2/layout.php on line 4
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/aweber-wp/layouts/common/layout_2/layout.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php' (include_path='.:/usr/share/php') in wp-content/plugins/aweber-wp/layouts/common/layout_15/layout.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aweber-wp/includes/eoi-block.php:48
    • > PHP Warning
      Use of undefined constant FCA_EOI_PLUGIN_DIR - assumed 'FCA_EOI_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/aweber-wp/includes/eoi-functions.php on line 3
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/aweber-wp/layouts/common/layout_1/layout.php on line 4
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/aweber-wp/layouts/common/layout_5/layout.php on line 4
    • > PHP Warning
      require_once(FCA_EOI_PLUGIN_DIRincludes/eoi-layout.php): failed to open stream: No such file or directory in wp-content/plugins/aweber-wp/layouts/common/layout_5/layout.php on line 4
    • > PHP Warning
      Use of undefined constant FCA_EOI_PLUGIN_DIR - assumed 'FCA_EOI_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/aweber-wp/layouts/common/layout_0/layout.php on line 4

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=easy-opt-ins&page=fca_eoi_settings_page
    • > Deprecation (warning) in unknown
    /wp-content/plugins/aweber-wp/assets/vendor/wysi/wysihtml.min.js?ver=2.5.6 9 Listener added for a synchronous 'DOMNodeRemoved' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

Optimizations

Plugin configuration 97% 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 your attention:
  • Screenshots: These screenshots require images: #1 (Examples of the Aweber form designs), #2 (The Aweber Opt-in Form Builder), #3 (Aweber Post Box), #4 (Aweber Popup), #5 (Another Aweber Post Box), #6 (Aweber Form Analytics), #7 (The whole settings screen)
Please take inspiration from this readme.txt

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

The main PHP script in "AWeber Forms by Optin Cat" version 2.5.6 is automatically included on every request by WordPress
125 characters long description:
Aweber Optin Cat Helps You Get More Email Subscribers. Create Beautiful Campaign Monitor Opt-In Forms In Less Than 2 Minutes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected10,333 lines of code in 159 files:
LanguageFilesBlank linesComment linesLines of code
PHP531,5811,8966,412
JavaScript344211891,951
CSS29146221,129
Sass201060534
HTML22170306
JSON1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity18.97
▷ Minimum class complexity1.00
▷ Maximum class complexity208.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes31
▷ Abstract classes00.00%
▷ Concrete classes31100.00%
▷ Final classes00.00%
Methods267
▷ Static methods165.99%
▷ Public methods21379.78%
▷ Protected methods217.87%
▷ Private methods3312.36%
Functions49
▷ Named functions49100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
68 compressed PNG files occupy 1.28MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
layouts/screenshots/layout_4.png10.90KB12.01KB0.00%
layouts/screenshots/banner_11.png7.49KB8.32KB0.00%
layouts/screenshots/postbox_8.png12.81KB14.64KB0.00%
screenshot-1.png47.71KB50.86KB0.00%
layouts/screenshots/layout_6.png10.59KB12.16KB0.00%