84% mp-hubspot

Code Review | MemberPress HubSpot

WordPress plugin MemberPress HubSpot scored84%from 54 tests.

About plugin

  • Plugin page: mp-hubspot
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Sep 11, 2017
  • Latest release: Sep 11, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: nathanjosiah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,173 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by MemberPress HubSpot
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.39 ▼11.00
Dashboard /wp-admin3.31 ▼0.0450.63 ▼10.73
Posts /wp-admin/edit.php3.36 ▲0.0050.84 ▲0.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.44 ▼9.02
Media Library /wp-admin/upload.php3.23 ▲0.0039.09 ▼1.13

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for MemberPress HubSpot
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.31 ▼0.974.41 ▲2.6042.45 ▲4.86
Dashboard /wp-admin2,221 ▲214.84 ▼1.2099.89 ▼7.2538.28 ▼1.50
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0235.55 ▼0.0636.11 ▼0.97
Add New Post /wp-admin/post-new.php1,545 ▲723.24 ▼0.05596.07 ▼29.8150.64 ▼11.93
Media Library /wp-admin/upload.php1,397 ▼34.16 ▼0.07111.97 ▼2.9248.07 ▲2.65

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mp-hubspot/mp-hubspot.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: A description for screenshot #2 is missing in mp-hubspot/assets to your readme.txt
You can take inspiration from this readme.txt

mp-hubspot/mp-hubspot.php Passed 13 tests

The principal PHP file in "MemberPress HubSpot" v. 1.0 is loaded by WordPress automatically on each request
49 characters long description:
HubSpot autoresponder integration for MemberPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin139 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12313139

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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
No PNG files were detected