84% crm2go-for-woocommerce

Code Review | CRM2go for WooCommerce

WordPress plugin CRM2go for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: crm2go-for-woocom...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8.2
  • WordPress version: 6.3.1
  • First release: Apr 4, 2018
  • Latest release: Apr 5, 2018
  • Number of updates: 4
  • Update frequency: every 28.0 days
  • Top authors: nrmendez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,054 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: ▼6.48ms] Passed 4 tests

An overview of server-side resources used by CRM2go for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.05 ▼4.66
Dashboard /wp-admin3.31 ▲0.0144.98 ▼2.95
Posts /wp-admin/edit.php3.36 ▲0.0042.84 ▼3.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.16 ▼14.83
Media Library /wp-admin/upload.php3.23 ▲0.0035.09 ▼0.61

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for CRM2go for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.73 ▼0.821.61 ▼0.5139.94 ▼2.47
Dashboard /wp-admin2,209 ▲205.85 ▲0.8996.25 ▼27.9841.96 ▼4.78
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0133.92 ▼3.0434.64 ▼1.46
Add New Post /wp-admin/post-new.php1,533 ▼923.13 ▲4.87628.33 ▼12.7453.92 ▼11.04
Media Library /wp-admin/upload.php1,388 ▼04.24 ▼0.09102.59 ▲7.7244.95 ▲1.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/crm2go-for-woocommerce/plugin-comments.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/crm2go-for-woocommerce/plugin-credit.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/crm2go-for-woocommerce/crm2go-for-woocommerce.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
7 plugin tags: integration, crm, e-commerce, crm2go, customer relationship management...

crm2go-for-woocommerce/crm2go-for-woocommerce.php Passed 13 tests

"CRM2go for WooCommerce" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
68 characters long description:
Agrega automaticamente los nuevos clientes de Woocommerce a CRM 2go.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected467 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP47384467

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/crm2go_logo_ctc.png12.01KB6.71KB▼ 44.08%
images/comments.png0.47KB0.48KB0.00%