93% fazacrm-client

Code Review | FazaCrm Client

WordPress plugin FazaCrm Client scored 93% from 54 tests.

About plugin

  • Plugin page: fazacrm-client
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.3.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-5.1
  • WordPress version: 5.8.1
  • First release: Feb 18, 2019
  • Latest release: Apr 23, 2019
  • Number of updates: 14
  • Update frequency: every 4.7 days
  • Top authors: fazae (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 476 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.20MB] [CPU: ▼136.62ms] Passed 4 tests

Server-side resources used by FazaCrm Client
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.2036.46 ▲14.77
Dashboard /wp-admin3.30 ▲0.2553.14 ▲10.78
Posts /wp-admin/edit.php3.35 ▲0.2541.34 ▼4.66
Add New Post /wp-admin/post-new.php5.61 ▲0.1795.11 ▼545.98
Media Library /wp-admin/upload.php3.18 ▲0.1832.43 ▼6.61
Settings /wp-admin/admin.php?page=fazacrmclient3.1932.15
Configuration test /wp-admin/admin.php?page=fazacrmclient_test_configuration3.1930.40

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 434 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

FazaCrm Client: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,739 ▲14316.20 ▲0.5710.02 ▼2.1246.47 ▼6.28
Dashboard /wp-admin3,002 ▲715.91 ▼0.04132.00 ▼10.91137.85 ▲24.50
Posts /wp-admin/edit.php2,774 ▲382.59 ▼0.1262.63 ▲0.7897.32 ▲2.16
Add New Post /wp-admin/post-new.php1,709 ▲3718.56 ▼0.38378.30 ▲0.78131.98 ▲23.81
Media Library /wp-admin/upload.php1,785 ▼225.02 ▼0.00124.00 ▼35.90139.72 ▲16.48
Settings /wp-admin/admin.php?page=fazacrmclient1,5842.0952.39118.32
Configuration test /wp-admin/admin.php?page=fazacrmclient_test_configuration1,1862.1054.9677.24

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
Uninstaller ran successfully

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 232× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Zend\\Validator\\Barcode\\AdapterInterface' not found in wp-content/plugins/fazacrm-client/vendor/zendframework/zend-validator/src/Barcode/AbstractAdapter.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Zend\\Validator\\AbstractValidator' not found in wp-content/plugins/fazacrm-client/vendor/zendframework/zend-validator/src/Hostname.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Zend\\Http\\Exception\\ExceptionInterface' not found in wp-content/plugins/fazacrm-client/vendor/zendframework/zend-http/src/Exception/InvalidArgumentException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Zend\\Validator\\Barcode\\AbstractAdapter' not found in wp-content/plugins/fazacrm-client/vendor/zendframework/zend-validator/src/Barcode/Leitcode.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Zend\\Http\\Header\\AbstractDate' not found in wp-content/plugins/fazacrm-client/vendor/zendframework/zend-http/src/Header/RetryAfter.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Zend\\Validator\\Exception\\ExceptionInterface' not found in wp-content/plugins/fazacrm-client/vendor/zendframework/zend-validator/src/Exception/RuntimeException.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Zend\\Validator\\AbstractValidator' not found in wp-content/plugins/fazacrm-client/vendor/zendframework/zend-validator/src/GpsPoint.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Zend\\Uri\\Exception\\ExceptionInterface' not found in wp-content/plugins/fazacrm-client/vendor/zendframework/zend-uri/src/Exception/InvalidArgumentException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Zend\\Http\\Client\\Exception\\InvalidArgumentException' not found in wp-content/plugins/fazacrm-client/vendor/zendframework/zend-http/src/Client/Adapter/Exception/InvalidArgumentException.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Zend\\Validator\\AbstractValidator' not found in wp-content/plugins/fazacrm-client/vendor/zendframework/zend-validator/src/LessThan.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
  • Screenshots: Screenshot #3 (Documentation associée pour vous permettre d'intégrer le plugin aisément.) image required
Please take inspiration from this readme.txt

fazacrm-client/Plugin.php 85% from 13 tests

The primary PHP file in "FazaCrm Client" version 1.0.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fazacrm-client.php" instead of "Plugin.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 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected34,737 lines of code in 414 files:
LanguageFilesBlank linesComment linesLines of code
PHP3204,67614,20028,447
Markdown761,99405,131
JSON1000819
CSS21013110
PO File138089
JavaScript2131063
YAML10063
HTML1309
XML1116

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity10.64
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces36
Interfaces40
Traits4
Classes263
▷ Abstract classes166.08%
▷ Concrete classes24793.92%
▷ Final classes52.02%
Methods1,581
▷ Static methods16910.69%
▷ Public methods1,40188.61%
▷ Protected methods1499.42%
▷ Private methods311.96%
Functions25
▷ Named functions624.00%
▷ Anonymous functions1976.00%
Constants377
▷ Global constants41.06%
▷ Class constants37398.94%
▷ Public constants373100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/container-interop/container-interop/docs/images/interoperating_containers.png25.13KB12.83KB▼ 48.97%
vendor/container-interop/container-interop/docs/images/side_by_side_containers.png15.88KB8.43KB▼ 46.90%
vendor/container-interop/container-interop/docs/images/priority.png15.87KB8.86KB▼ 44.20%
assets/images/icon.png1.28KB0.55KB▼ 57.02%