83% amocrm-webform

Code Review | Plugin Name: amoCRM WebForm

WordPress plugin Plugin Name: amoCRM WebForm scored83%from 54 tests.

About plugin

  • Plugin page: amocrm-webform
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.1
  • WordPress version: 6.3.1
  • First release: Dec 15, 2014
  • Latest release: Dec 23, 2014
  • Number of updates: 7
  • Update frequency: every 1.6 days
  • Top authors: amocrm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /7,427 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 gracefully, with no errors

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

Analyzing server-side resources used by Plugin Name: amoCRM WebForm
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.21 ▼1.34
Dashboard /wp-admin3.31 ▲0.0146.74 ▼0.54
Posts /wp-admin/edit.php3.36 ▲0.0144.52 ▼7.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.27 ▼11.32
Media Library /wp-admin/upload.php3.24 ▲0.0135.81 ▲5.40

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Name: amoCRM WebForm
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10214.73 ▲0.351.83 ▲0.1842.66 ▲3.38
Dashboard /wp-admin2,213 ▲284.91 ▼0.9499.90 ▼3.3739.27 ▼5.22
Posts /wp-admin/edit.php2,093 ▲72.05 ▼0.0137.58 ▲1.8335.20 ▲0.33
Add New Post /wp-admin/post-new.php1,532 ▲1823.21 ▲5.73651.66 ▲1.2564.42 ▲19.95
Media Library /wp-admin/upload.php1,386 ▼54.28 ▼0.0597.36 ▼1.4540.77 ▼1.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/amocrm-webform/amocrm.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 75% 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
Attributes that need to be fixed:
  • Tags: You are using too many tags: 36 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Configure your form and get the shortcode), #2 (Search result for “amoCRM” in your WordPress admin area), #3 (Usage of shortcode example), #4 (Working form on your website which captures the amoCRM leads)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === Plugin Name: amoCRM WebForm === )
  • Contributors: Contributors not specified
You can look at the official readme.txt

amocrm-webform/amocrm.php 85% from 13 tests

This is the main PHP file of "Plugin Name: amoCRM WebForm" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("amocrm-webform.php" instead of "amocrm.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
No dangerous file extensions were detected32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161032

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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