10% aweber-subscriber-form

Code Review | Aweber Subscriber Form

WordPress plugin Aweber Subscriber Form scored 10% from 54 tests.

About plugin

  • Plugin page: aweber-subscriber...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.2.2
  • WordPress version: 5.8.1
  • First release: May 30, 2015
  • Latest release: May 30, 2015
  • Number of updates: 18
  • Update frequency: every 0.1 days
  • Top authors: freewebmentor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,463 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
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/aweber-subscriber-form/index.php+14
    Undefined variable: Fm_tweets_defaults

Server metrics [RAM: ▼1.85MB] [CPU: ▼193.96ms] Passed 4 tests

Analyzing server-side resources used by Aweber Subscriber Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.78 ▼0.945.15 ▼18.33
Dashboard /wp-admin1.80 ▼1.269.38 ▼38.70
Posts /wp-admin/edit.php1.80 ▼1.314.94 ▼47.88
Add New Post /wp-admin/post-new.php1.80 ▼3.636.60 ▼658.25
Media Library /wp-admin/upload.php1.80 ▼1.206.78 ▼31.00

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
widget_themater_aweber

Browser metrics Passed 4 tests

Aweber Subscriber Form: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.83 ▲0.197.37 ▼0.5352.87 ▲3.85
Dashboard /wp-admin2,970 ▲375.86 ▼0.31141.52 ▼43.83113.98 ▼12.41
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0272.64 ▲7.17102.96 ▲2.52
Add New Post /wp-admin/post-new.php1,604 ▼6818.93 ▼0.16372.78 ▼17.69122.77 ▲3.05
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.02166.02 ▲9.01127.36 ▼12.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/aweber-subscriber-form/index.php+14
    Undefined variable: Fm_tweets_defaults
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_themater_aweber

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aweber-subscriber-form/index.php:16
    • > PHP Notice
      Undefined variable: Fm_tweets_defaults in wp-content/plugins/aweber-subscriber-form/index.php on line 14
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/aweber-subscriber-form/index.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
10 plugin tags: newsletter, aweber, email, email marketing, marketing...

aweber-subscriber-form/index.php 92% from 13 tests

"Aweber Subscriber Form" version 1.0.0'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-subscriber-form.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected102 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP18988
CSS10014

PHP code Passed 2 tests

This is a short overview 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.08
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/green.png0.16KB0.24KB0.00%
images/email.png0.51KB0.59KB0.00%
images/name.png0.64KB0.57KB▼ 11.33%