89% pixeladas-typeform-and-hubspot-source-integration

Code Review | Pixeladas Typeform and Hubspot source integration

WordPress plugin Pixeladas Typeform and Hubspot source integration scored89%from 54 tests.

About plugin

  • Plugin page: pixeladas-typefor...
  • Plugin version: 1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Oct 5, 2022
  • Latest release: Jul 13, 2023
  • Number of updates: 5
  • Update frequency: every 67.0 days
  • Top authors: pixeladas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /180 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: ▼9.02ms] Passed 4 tests

An overview of server-side resources used by Pixeladas Typeform and Hubspot source integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.38 ▼1.06
Dashboard /wp-admin3.31 ▼0.0448.89 ▼15.16
Posts /wp-admin/edit.php3.36 ▲0.0050.46 ▼5.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.35 ▼14.53
Media Library /wp-admin/upload.php3.23 ▲0.0038.04 ▲2.09

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Pixeladas Typeform and Hubspot source integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.29 ▼0.261.64 ▼0.0739.96 ▼4.26
Dashboard /wp-admin2,195 ▲155.54 ▲0.0382.83 ▼15.9939.44 ▼4.94
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0137.25 ▲0.5633.87 ▼3.62
Add New Post /wp-admin/post-new.php1,526 ▼023.92 ▲0.33663.02 ▲33.5656.39 ▲1.59
Media Library /wp-admin/upload.php1,403 ▲64.28 ▲0.1096.16 ▼4.0542.64 ▼4.61

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 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 no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === pixeladas-typeform-and-hubspot-source-integration === )
  • Screenshots: These screenshots require images: #1 (Activate integration with Hubspot in Typeform.), #2 (Enable source tracking and embedding forms.), #3 (Shortcode insertion)
The official readme.txt is a good inspiration

pixeladas-typeform-and-hubspot-source-integration/pixeladas-typeform-hubspot.php 85% from 13 tests

Analyzing the main PHP file in "Pixeladas Typeform and Hubspot source integration" version 1.3
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("pixeladas-typeform-and-hubspot-source-integration.php" instead of "pixeladas-typeform-hubspot.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin92 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2101435
Markdown116029
JavaScript11024
CSS1004

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/03.png8.39KB2.98KB▼ 64.50%
assets/01.png19.89KB6.46KB▼ 67.54%
assets/02.png58.23KB19.64KB▼ 66.28%