78% acumbamail-signup-forms

Code Review | Acumbamail

WordPress plugin Acumbamail scored 78% from 54 tests.

About plugin

  • Plugin page: acumbamail-signup...
  • Plugin version: 2.0.13
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 5.9.2
  • First release: Mar 10, 2014
  • Latest release: Mar 3, 2022
  • Number of updates: 96
  • Update frequency: every 30.4 days
  • Top authors: jesusbotella (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 11,269 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼26.74ms] Passed 4 tests

An overview of server-side resources used by Acumbamail
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1554.53 ▲4.35
Dashboard /wp-admin3.52 ▲0.11404.87 ▲371.34
Posts /wp-admin/edit.php3.75 ▲0.11389.04 ▲350.98
Add New Post /wp-admin/post-new.php7.05 ▲0.07425.77 ▼833.64
Media Library /wp-admin/upload.php3.47 ▲0.172,337.51 ▲2,312.08

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options
widget_acumbamail

Browser metrics Passed 4 tests

This is an overview of browser requirements for Acumbamail
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲3916.17 ▲0.505.87 ▼1.082.10 ▼0.14
Dashboard /wp-admin2,922 ▲616.09 ▼0.09119.10 ▼19.29174.96 ▲12.35
Posts /wp-admin/edit.php2,708 ▲232.91 ▼0.3263.91 ▼0.23149.53 ▲5.61
Add New Post /wp-admin/post-new.php1,724 ▲6420.74 ▲4.08426.51 ▲9.55165.74 ▲12.12
Media Library /wp-admin/upload.php1,713 ▲155.65 ▲0.13123.10 ▼24.35197.62 ▲9.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_acumbamail

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/acumbamail-signup-forms/acumbamail.php
    • > /wp-content/plugins/acumbamail-signup-forms/acumbamail_widget.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: welcome_email in wp-content/plugins/acumbamail-signup-forms/inc/frontend.php on line 38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/acumbamail-signup-forms/inc/frontend.php:62
    • > PHP Notice
      Undefined variable: double_optin in wp-content/plugins/acumbamail-signup-forms/inc/frontend.php on line 37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/acumbamail-signup-forms/inc/admin_page.php:5

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === acumbamail-signup-forms === )
The official readme.txt might help

acumbamail-signup-forms/acumbamail.php 92% from 13 tests

"Acumbamail" version 2.0.13's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acumbamail-signup-forms.php" instead of "acumbamail.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected808 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6135182694
PO File14245114

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.00
▷ Minimum class complexity3.00
▷ Maximum class complexity7.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png0.40KB0.29KB▼ 27.59%