90% logic-hop-hubspot-add-on

Code Review | Logic Hop HubSpot Add-on

WordPress plugin Logic Hop HubSpot Add-on scored 90% from 54 tests.

About plugin

  • Plugin page: logic-hop-hubspot...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Apr 3, 2019
  • Latest release: Oct 11, 2022
  • Number of updates: 9
  • Update frequency: every 144.3 days
  • Top authors: logichop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,423 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.41ms] Passed 4 tests

A check of server-side resources used by Logic Hop HubSpot Add-on
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.75 ▼11.36
Dashboard /wp-admin3.38 ▲0.0845.93 ▼2.29
Posts /wp-admin/edit.php3.49 ▲0.1449.67 ▲6.44
Add New Post /wp-admin/post-new.php5.96 ▲0.0895.38 ▼2.11
Media Library /wp-admin/upload.php3.30 ▲0.0732.96 ▼1.87

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Logic Hop HubSpot Add-on
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11013.64 ▼0.571.74 ▼0.3141.09 ▼6.53
Dashboard /wp-admin2,234 ▲465.85 ▼0.03107.89 ▼16.0042.59 ▼0.61
Posts /wp-admin/edit.php2,119 ▲332.02 ▼0.0242.16 ▲3.6738.87 ▲3.75
Add New Post /wp-admin/post-new.php1,535 ▼717.86 ▼0.49635.35 ▼25.2247.62 ▼5.24
Media Library /wp-admin/upload.php1,422 ▲344.19 ▼0.0195.77 ▼4.0642.76 ▼3.66

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
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Looking good! No server-side errors or output on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: rules, pipedrive, crm, personalization, personalized content...

logic-hop-hubspot-add-on/logichop_hubspot.php 92% from 13 tests

The entry point to "Logic Hop HubSpot Add-on" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("logic-hop-hubspot-add-on.php" instead of "logichop_hubspot.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected399 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP386215388
CSS1007
JavaScript20114

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity31.50
▷ Minimum class complexity5.00
▷ Maximum class complexity58.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods13.57%
▷ Public methods2485.71%
▷ Protected methods27.14%
▷ Private methods27.14%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin