84% quform-zapier

Code Review | Quform Zapier

WordPress plugin Quform Zapier scored 84% from 54 tests.

About plugin

  • Plugin page: quform-zapier
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: May 10, 2019
  • Latest release: Jun 22, 2023
  • Number of updates: 17
  • Update frequency: every 88.5 days
  • Top authors: ThemeCatcher (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

900+ active / 6,623 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.01MB] [CPU: ▼5.27ms] Passed 4 tests

Server-side resources used by Quform Zapier
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.58 ▼10.70
Dashboard /wp-admin3.32 ▲0.0149.78 ▲1.05
Posts /wp-admin/edit.php3.37 ▲0.0150.64 ▲2.04
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.26 ▼13.46
Media Library /wp-admin/upload.php3.24 ▲0.0139.30 ▲3.34

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
quform_zapier_activated
widget_theysaidso_widget

Browser metrics Passed 4 tests

Quform Zapier: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.77 ▲0.181.85 ▼0.2043.00 ▲2.52
Dashboard /wp-admin2,206 ▲154.85 ▼0.08101.55 ▼3.3545.53 ▲0.94
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0139.03 ▲3.9836.65 ▲0.79
Add New Post /wp-admin/post-new.php1,533 ▼923.20 ▲5.14675.59 ▼66.8654.98 ▲0.43
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.02112.91 ▲11.9648.39 ▲3.29

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • quform_zapier_activated
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Quform_Zapier_Admin_Page' not found in wp-content/plugins/quform-zapier/library/Quform/Zapier/Admin/Page/Integrations/List.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Quform_Zapier_Admin_Page' not found in wp-content/plugins/quform-zapier/library/Quform/Zapier/Admin/Page/Settings.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Quform_Admin_Page' not found in wp-content/plugins/quform-zapier/library/Quform/Zapier/Admin/Page.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/quform-zapier/library/Quform/Zapier/Integration/List/Table.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Quform_Zapier_Admin_Page' not found in wp-content/plugins/quform-zapier/library/Quform/Zapier/Admin/Page/Integrations/Edit.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Quform_Zapier_Admin_Page' not found in wp-content/plugins/quform-zapier/library/Quform/Zapier/Admin/Page/Integrations/Add.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: quform, form builder, zapier, forms

quform-zapier/quform-zapier.php Passed 13 tests

This is the main PHP file of "Quform Zapier" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Easily integrate Zapier with Quform forms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,831 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP296159732,542
JavaScript6268278979
CSS218310

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.78
▷ Minimum class complexity1.00
▷ Maximum class complexity78.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes14.35%
▷ Concrete classes2295.65%
▷ Final classes00.00%
Methods153
▷ Static methods95.88%
▷ Public methods9763.40%
▷ Protected methods5636.60%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/zapier-logo@2x.png0.82KB0.68KB▼ 17.06%
admin/images/zapier-logo.png0.49KB0.42KB▼ 13.86%