78% acumbamail-signup-forms

Code Review | Acumbamail

WordPress plugin Acumbamail scored78%from 54 tests.

About plugin

  • Plugin page: acumbamail-signup...
  • Plugin version: 2.0.15
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Mar 10, 2014
  • Latest release: Jun 22, 2022
  • Number of updates: 98
  • Update frequency: every 30.9 days
  • Top authors: jesusbotella (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /15,162 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▲284.59ms] 75% from 4 tests

Server-side resources used by Acumbamail
The following require your attention
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 284.59ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.22 ▼4.13
Dashboard /wp-admin3.47 ▲0.17432.30 ▲384.17
Posts /wp-admin/edit.php3.52 ▲0.17425.89 ▲380.66
Add New Post /wp-admin/post-new.php5.99 ▲0.10487.98 ▲399.65
Media Library /wp-admin/upload.php3.33 ▲0.10412.63 ▲377.65

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_acumbamail
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Acumbamail: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.55 ▲0.191.91 ▲0.1646.00 ▼2.98
Dashboard /wp-admin2,213 ▲365.57 ▼0.1089.03 ▼2.1782.25 ▲39.13
Posts /wp-admin/edit.php2,112 ▲121.93 ▼0.0733.87 ▼6.5931.33 ▼1.13
Add New Post /wp-admin/post-new.php1,563 ▲3518.09 ▼4.85707.47 ▲95.8375.02 ▲31.19
Media Library /wp-admin/upload.php1,415 ▲154.15 ▼0.02110.59 ▲12.9665.99 ▲23.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_acumbamail
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/acumbamail-signup-forms/acumbamail_widget.php
    • > /wp-content/plugins/acumbamail-signup-forms/acumbamail.php
  • 4× PHP files trigger server errors when accessed directly:
    • > 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
    • > PHP Notice
      Undefined variable: welcome_email in wp-content/plugins/acumbamail-signup-forms/inc/frontend.php on line 38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === acumbamail-signup-forms === )
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "Acumbamail" version 2.0.15
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("acumbamail-signup-forms.php" instead of "acumbamail.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected812 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6135182698
PO File14245114

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.50
▷ Minimum class complexity3.00
▷ Maximum class complexity8.00
Average method complexity1.28
▷ Minimum method complexity1.00
▷ Maximum method complexity5.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

PNG files should be compressed to save space and 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%