10% recrm

Code Review | ReCRM

WordPress plugin ReCRM scored10%from 54 tests.

About plugin

  • Plugin page: recrm
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: Feb 27, 2019
  • Latest release: Nov 11, 2020
  • Number of updates: 10
  • Update frequency: every 62.4 days
  • Top authors: zetrider (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /577 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/recrm/admin/class-recrm-admin.php+522
    syntax error, unexpected 'endif' (T_ENDIF)

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.41ms] Passed 4 tests

This is a short check of server-side resources used by ReCRM
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.47 ▼5.52
Dashboard /wp-admin3.31 ▲0.0043.92 ▲1.32
Posts /wp-admin/edit.php3.36 ▲0.0045.45 ▲1.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.30 ▼22.82
Media Library /wp-admin/upload.php3.23 ▲0.0037.03 ▲6.46

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for ReCRM
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.44 ▲0.071.61 ▼0.1836.59 ▼5.33
Dashboard /wp-admin2,195 ▲175.63 ▼0.1185.45 ▼14.7254.36 ▲8.44
Posts /wp-admin/edit.php2,097 ▼32.04 ▲0.0940.29 ▲6.3835.46 ▼5.62
Add New Post /wp-admin/post-new.php1,526 ▼223.06 ▲0.12659.28 ▲10.7350.43 ▲0.63
Media Library /wp-admin/upload.php1,394 ▼34.14 ▼0.1696.36 ▼5.0543.93 ▲1.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected 'endif' (T_ENDIF) in wp-content/plugins/recrm/admin/class-recrm-admin.php on line 522

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Настройки плагина), #2 (Настройка категория), #3 (Настройка свойств), #4 (Информация объекта недвижимости), #5 (Информация агента)
You can look at the official readme.txt

recrm/recrm.php Passed 13 tests

The main PHP file in "ReCRM" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
12 characters long description:
ReCRM Import

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin4,848 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP337662,3403,821
PO File1207212437
Markdown3930416
JSON300109
CSS11046
JavaScript11019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity23.70
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods284
▷ Static methods258.80%
▷ Public methods25690.14%
▷ Protected methods20.70%
▷ Private methods269.15%
Functions22
▷ Named functions627.27%
▷ Anonymous functions1672.73%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.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
There are no PNG files in this plugin