99% leads-for-amo-crm

Code Review | The integration of the AMO.CRM

WordPress plugin The integration of the AMO.CRM scored 99% from 54 tests.

About plugin

  • Plugin page: leads-for-amo-crm
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3
  • WordPress version: 5.8.1
  • First release: Feb 26, 2020
  • Latest release: Feb 26, 2020
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: jh5ru (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 311 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼138.71ms] Passed 4 tests

An overview of server-side resources used by The integration of the AMO.CRM
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1346.81 ▲21.49
Dashboard /wp-admin3.08 ▲0.0365.67 ▲16.06
Posts /wp-admin/edit.php3.13 ▲0.0249.31 ▼1.82
Add New Post /wp-admin/post-new.php5.44 ▲0.0097.75 ▼566.86
Media Library /wp-admin/upload.php3.02 ▲0.0233.55 ▼2.20
Заявки /wp-admin/admin.php?page=amocrm/amo-admin-leads.php2.9929.42
Настройки /wp-admin/admin.php?page=amocrm/amo-admin.php2.9929.30

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 2 new options
New tables
wp_amo
New WordPress options
amo_leads_settings
amo_leads_count

Browser metrics Passed 4 tests

This is an overview of browser requirements for The integration of the AMO.CRM
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲14116.30 ▲0.4212.87 ▼1.3950.44 ▲2.43
Dashboard /wp-admin3,004 ▲705.92 ▼0.09164.07 ▲6.86124.81 ▲0.85
Posts /wp-admin/edit.php2,773 ▲342.72 ▲0.0096.54 ▲23.1299.75 ▲4.61
Add New Post /wp-admin/post-new.php1,637 ▼4621.35 ▲2.89326.35 ▼103.89104.98 ▼14.05
Media Library /wp-admin/upload.php1,841 ▲345.04 ▼0.01165.72 ▼1.09123.56 ▲5.74
Заявки /wp-admin/admin.php?page=amocrm/amo-admin-leads.php1,0822.1461.1461.37
Настройки /wp-admin/admin.php?page=amocrm/amo-admin.php1,1292.0860.0977.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from) image not found
You can look at the official readme.txt

leads-for-amo-crm/amocrmleads.php 77% from 13 tests

The main file in "The integration of the AMO.CRM" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 154 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("leads-for-amo-crm.php" instead of "amocrmleads.php")

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
Success! There were no dangerous files found in this plugin165 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP65225165

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods480.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin