83% w3scloud-contact-form-7-to-bigin

Code Review | W3SCloud Contact Form 7 to Bigin

WordPress plugin W3SCloud Contact Form 7 to Bigin scored83%from 54 tests.

About plugin

  • Plugin page: w3scloud-contact-...
  • Plugin version: 2.3.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Apr 15, 2022
  • Latest release: May 12, 2023
  • Number of updates: 10
  • Update frequency: every 39.3 days
  • Top authors: w3scloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /375 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.71MB] [CPU: ▼1.41ms] Passed 4 tests

This is a short check of server-side resources used by W3SCloud Contact Form 7 to Bigin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4636.96 ▼2.30
Dashboard /wp-admin4.08 ▲0.7848.26 ▼3.57
Posts /wp-admin/edit.php4.17 ▲0.8153.76 ▼0.29
Add New Post /wp-admin/post-new.php6.73 ▲0.84101.96 ▲0.52
Media Library /wp-admin/upload.php4.00 ▲0.7842.08 ▲9.52
Add New /wp-admin/post-new.php?post_type=w3sc_bigin4.3754.45
Bigin Auth Settings /wp-admin/edit.php?post_type=w3sc_bigin&page=w3sc-cf7-bigin3.9739.35
All Integrations /wp-admin/edit.php?post_type=w3sc_bigin4.0538.25

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 377 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
widget_recent-comments
w3sc_bigin_version
w3sc_bigin_installed
db_upgraded
can_compress_scripts
widget_theysaidso_widget
_bigin_auth_infos
theysaidso_admin_options

Browser metrics Passed 4 tests

W3SCloud Contact Form 7 to Bigin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.24 ▼1.061.66 ▼0.1343.04 ▼2.84
Dashboard /wp-admin2,248 ▲574.93 ▲0.03108.30 ▲4.1341.01 ▼1.26
Posts /wp-admin/edit.php2,131 ▲392.07 ▲0.0141.75 ▲1.6535.09 ▲0.23
Add New Post /wp-admin/post-new.php1,556 ▲1418.27 ▲0.02614.16 ▲8.1458.56 ▲4.59
Media Library /wp-admin/upload.php1,433 ▲424.32 ▲0.1299.11 ▼1.3441.83 ▼3.33
Add New /wp-admin/post-new.php?post_type=w3sc_bigin1,7162.7152.4352.11
Bigin Auth Settings /wp-admin/edit.php?post_type=w3sc_bigin&page=w3sc-cf7-bigin1,0061.8726.0143.49
All Integrations /wp-admin/edit.php?post_type=w3sc_bigin1,0952.0035.2027.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • db_upgraded
    • w3sc_bigin_installed
    • can_compress_scripts
    • w3sc_bigin_version
    • _bigin_auth_infos
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 39× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/w3scloud-contact-form-7-to-bigin/includes/CMB2-w3sc/includes/types/CMB2_Type_Text_Time.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/w3scloud-contact-form-7-to-bigin/includes/CMB2-w3sc/includes/types/CMB2_Type_Taxonomy_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/w3scloud-contact-form-7-to-bigin/includes/CMB2-w3sc/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/w3scloud-contact-form-7-to-bigin/includes/CMB2-w3sc/includes/types/CMB2_Type_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/w3scloud-contact-form-7-to-bigin/includes/CMB2-w3sc/includes/types/CMB2_Type_Counter_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/w3scloud-contact-form-7-to-bigin/includes/CMB2-w3sc/includes/types/CMB2_Type_Text.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/w3scloud-contact-form-7-to-bigin/includes/CMB2-w3sc/includes/types/CMB2_Type_Title.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/w3scloud-contact-form-7-to-bigin/includes/CMB2-w3sc/includes/types/CMB2_Type_Checkbox.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/w3scloud-contact-form-7-to-bigin/includes/CMB2-w3sc/includes/types/CMB2_Type_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/w3scloud-contact-form-7-to-bigin/includes/CMB2-w3sc/includes/CMB2_Field.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (API Client Authentication settings form.), #2 (New Integration page.), #3 (Field Mapping Process for integration.)
You can take inspiration from this readme.txt

w3scloud-contact-form-7-to-bigin/w3sc-cf7-to-bigin.php 77% from 13 tests

Analyzing the main PHP file in "W3SCloud Contact Form 7 to Bigin" version 2.3.0
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("w3scloud-contact-form-7-to-bigin.php" instead of "w3sc-cf7-to-bigin.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
There were no executable files found in this plugin55,195 lines of code in 230 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP672,3036,5528,051
JSON2006,602
CSS132581,1934,592
JavaScript83645911,451
Sass17306291,411
Markdown32470765

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity17.54
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes78
▷ Abstract classes911.54%
▷ Concrete classes6988.46%
▷ Final classes11.45%
Methods572
▷ Static methods9216.08%
▷ Public methods47783.39%
▷ Protected methods8915.56%
▷ Private methods61.05%
Functions39
▷ Named functions3897.44%
▷ Anonymous functions12.56%
Constants15
▷ Global constants853.33%
▷ Class constants746.67%
▷ Public constants7100.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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/CMB2-w3sc/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
includes/CMB2-w3sc/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
includes/CMB2-w3sc/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
includes/CMB2-w3sc/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
includes/CMB2-w3sc/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%