84% acymailing-integration-for-contact-form-7

Code Review | Contact Form 7 integration - AcyMailing

WordPress plugin Contact Form 7 integration - AcyMailing scored 84% from 54 tests.

About plugin

  • Plugin page: acymailing-integr...
  • Plugin version: 1.4
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9.2
  • WordPress version: 5.9.2
  • First release: Oct 7, 2020
  • Latest release: Mar 21, 2022
  • Number of updates: 7
  • Update frequency: every 75.9 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,133 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼294.57ms] Passed 4 tests

An overview of server-side resources used by Contact Form 7 integration - AcyMailing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0264.74 ▲12.81
Dashboard /wp-admin3.42 ▲0.0132.49 ▼0.71
Posts /wp-admin/edit.php3.65 ▲0.0135.64 ▼0.62
Add New Post /wp-admin/post-new.php6.92 ▼0.0891.18 ▼1,176.92
Media Library /wp-admin/upload.php3.31 ▲0.0123.61 ▼0.03

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Contact Form 7 integration - AcyMailing: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1916.21 ▲0.545.99 ▼0.542.22 ▲0.25
Dashboard /wp-admin2,895 ▲376.18 ▲0.00114.61 ▼18.50156.07 ▼5.82
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0161.98 ▼2.64143.31 ▲6.26
Add New Post /wp-admin/post-new.php1,668 ▼9018.13 ▼4.05396.68 ▼56.24155.38 ▲4.24
Media Library /wp-admin/upload.php1,698 ▼35.51 ▲0.06137.11 ▼7.93184.97 ▲1.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+307
    call_user_func_array() expects parameter 1 to be a valid callback, function 'acym_integration_contactform7_remove' not found or invalid function name

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/acymailing-integration-for-contact-form-7/acymailing-contactform7.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'AcyMailing\\Libraries\\acymPlugin' not found in wp-content/plugins/acymailing-integration-for-contact-form-7/plugin.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_html_class() in wp-content/plugins/acymailing-integration-for-contact-form-7/views/acymsubDisplay.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acym_translation() in wp-content/plugins/acymailing-integration-for-contact-form-7/views/acymsubParameters.php:4

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


Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: acymailing, newsletter form, form, subscription, newsletter

acymailing-integration-for-contact-form-7/acymailing-contactform7.php 92% from 13 tests

The principal PHP file in "Contact Form 7 integration - AcyMailing" v. 1.4 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("acymailing-integration-for-contact-form-7.php" instead of "acymailing-contactform7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected356 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods111.11%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ 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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
banner.png17.32KB5.66KB▼ 67.29%