74% ems-jetpack-crm

Code Review | Email Marketing Services - Integration for Jetpack CRM

WordPress plugin Email Marketing Services - Integration for Jetpack CRM scored 74% from 54 tests.

About plugin

  • Plugin page: ems-jetpack-crm
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1.0
  • WordPress version: 6.3.1
  • First release: Sep 30, 2022
  • Latest release: Sep 30, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: kroozz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 177 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲1.34MB] [CPU: ▲12.58ms] Passed 4 tests

A check of server-side resources used by Email Marketing Services - Integration for Jetpack CRM
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.82 ▲1.3657.68 ▲17.08
Dashboard /wp-admin4.67 ▲1.3758.96 ▲10.25
Posts /wp-admin/edit.php4.72 ▲1.3765.23 ▲20.13
Add New Post /wp-admin/post-new.php7.19 ▲1.31101.60 ▲3.71
Media Library /wp-admin/upload.php4.53 ▲1.3150.80 ▲19.27
Scheduled Actions /wp-admin/tools.php?page=action-scheduler4.7654.71

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 998 new files
Database: 4 new tables, 12 new options
New tables
wp_actionscheduler_claims
wp_actionscheduler_logs
wp_actionscheduler_groups
wp_actionscheduler_actions
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
action_scheduler_hybrid_store_demarkation
can_compress_scripts
action_scheduler_lock_async-request-runner
ems_jetpack_crm_version
ems_jetpack_crm_installed
schema-ActionScheduler_LoggerSchema
...

Browser metrics Passed 4 tests

Email Marketing Services - Integration for Jetpack CRM: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.24 ▼1.211.98 ▼0.3744.30 ▼6.16
Dashboard /wp-admin2,222 ▲344.89 ▼1.07110.17 ▼8.7740.18 ▼4.56
Posts /wp-admin/edit.php2,105 ▲161.98 ▼0.0640.74 ▼1.9237.59 ▼0.27
Add New Post /wp-admin/post-new.php1,546 ▲423.33 ▲5.20627.18 ▼49.1153.69 ▼5.61
Media Library /wp-admin/upload.php1,407 ▲194.14 ▼0.12101.51 ▼9.8343.35 ▼4.37
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,2531.8027.2827.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables were found after uninstall: 4 tables
    • wp_actionscheduler_groups
    • wp_actionscheduler_logs
    • wp_actionscheduler_claims
    • wp_actionscheduler_actions
  • The uninstall procedure has failed, leaving 12 options in the database
    • widget_theysaidso_widget
    • ems_jetpack_crm_version
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • schema-ActionScheduler_StoreSchema
    • schema-ActionScheduler_LoggerSchema
    • ems_jetpack_crm_installed
    • action_scheduler_hybrid_store_demarkation
    • db_upgraded
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
  • 565× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/ems-jetpack-crm/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ems-jetpack-crm/vendor/sendinblue/api-v3-sdk/test/Model/NoteListTest.php:41
    • > PHP Fatal error
      Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/ems-jetpack-crm/vendor/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php:43
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ems-jetpack-crm/vendor/sendinblue/api-v3-sdk/test/Model/GetAccountPlanTest.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/ems-jetpack-crm/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/ems-jetpack-crm/vendor/sendinblue/api-v3-sdk/lib/Model/MasterDetailsResponsePlanInfo.php:44
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ems-jetpack-crm/vendor/sendinblue/api-v3-sdk/test/Model/GetSmsCampaignRecipientsTest.php:41
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\BodySummarizerInterface' not found in wp-content/plugins/ems-jetpack-crm/vendor/guzzlehttp/guzzle/src/BodySummarizer.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/ems-jetpack-crm/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php:43
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ems-jetpack-crm/vendor/sendinblue/api-v3-sdk/test/Model/UpdateChildTest.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: api, email, crm-jetpack, import-contacts, sendinblue

ems-jetpack-crm/ems-jetpack-crm.php Passed 13 tests

This is the main PHP file of "Email Marketing Services - Integration for Jetpack CRM" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
76 characters long description:
Import all of your contacts from popular newsletter services to Jetpack CRM.

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
Good job! No executable or dangerous file extensions detected105,143 lines of code in 977 files:
LanguageFilesBlank linesComment linesLines of code
PHP70021,51483,59390,865
Markdown2634,519012,922
JSON10001,192
CSS1415130
XML11020
YAML20014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity13.77
▷ Minimum class complexity1.00
▷ Maximum class complexity841.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces17
Interfaces30
Traits3
Classes649
▷ Abstract classes152.31%
▷ Concrete classes63497.69%
▷ Final classes365.68%
Methods9,531
▷ Static methods1,85219.43%
▷ Public methods9,08895.35%
▷ Protected methods3023.17%
▷ Private methods1411.48%
Functions593
▷ Named functions538.94%
▷ Anonymous functions54091.06%
Constants559
▷ Global constants61.07%
▷ Class constants55398.93%
▷ Public constants54298.01%

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