93% gro-crm

Code Review | Gro CRM Contact to Leads

WordPress plugin Gro CRM Contact to Leads scored 93% from 54 tests.

About plugin

  • Plugin page: gro-crm
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.3-4.9.6
  • WordPress version: 5.9.2
  • First release: Mar 24, 2017
  • Latest release: Jul 6, 2018
  • Number of updates: 8
  • Update frequency: every 58.4 days
  • Top authors: grocrm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 531 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼293.64ms] Passed 4 tests

An overview of server-side resources used by Gro CRM Contact to Leads
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.3557.50 ▲5.30
Dashboard /wp-admin3.70 ▲0.2935.44 ▲0.92
Posts /wp-admin/edit.php3.92 ▲0.2839.14 ▲1.09
Add New Post /wp-admin/post-new.php7.16 ▲0.1993.08 ▼1,176.38
Media Library /wp-admin/upload.php3.58 ▲0.2825.75 ▼0.19
Gro CRM /wp-admin/options-general.php?page=grocrm3.6025.01

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gro CRM Contact to Leads
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,802 ▲5815.88 ▲0.008.06 ▲1.492.45 ▲0.31
Dashboard /wp-admin2,897 ▲426.13 ▼0.06134.60 ▼18.83159.37 ▼7.13
Posts /wp-admin/edit.php2,696 ▲22.99 ▼0.2460.33 ▼4.09144.25 ▲0.13
Add New Post /wp-admin/post-new.php1,671 ▼8117.79 ▼3.91391.07 ▼74.12155.10 ▼8.65
Media Library /wp-admin/upload.php1,703 ▲55.50 ▼0.01138.79 ▼10.45172.72 ▼22.61
Gro CRM /wp-admin/options-general.php?page=grocrm1,0632.3754.59114.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gro-crm/public/partials/grocrm-public-display.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gro-crm/admin/partials/grocrm-admin-display.php:17

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)
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

gro-crm/grocrm.php 77% from 13 tests

The main file in "Gro CRM Contact to Leads" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gro-crm.php" instead of "grocrm.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin3,103 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP142865091,477
PO File16776891,372
CSS2474235
Markdown16013
JavaScript2206

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.88
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.02
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods46
▷ Static methods24.35%
▷ Public methods3371.74%
▷ Protected methods00.00%
▷ Private methods1328.26%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/gro_crm_logo.png1.14KB1.21KB0.00%
admin/images/gro_crm_background_wave.png6.67KB6.80KB0.00%