83% free-forms-and-crm

Code Review | Free Forms & CRM

WordPress plugin Free Forms & CRM scored83%from 54 tests.

About plugin

  • Plugin page: free-forms-and-crm
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.6
  • WordPress version: 6.3.1
  • First release: Apr 23, 2016
  • Latest release: Nov 15, 2016
  • Number of updates: 20
  • Update frequency: every 10.3 days
  • Top authors: cubsus (80%)worldsoftwbs (25%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /4,630 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▲1.58ms] Passed 4 tests

An overview of server-side resources used by Free Forms & CRM
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1548.52 ▲3.19
Dashboard /wp-admin3.48 ▲0.1851.81 ▼5.14
Posts /wp-admin/edit.php3.59 ▲0.2455.39 ▲4.20
Add New Post /wp-admin/post-new.php6.06 ▲0.17109.85 ▲14.27
Media Library /wp-admin/upload.php3.40 ▲0.1741.83 ▲4.08
Free Forms & CRM /wp-admin/admin.php?page=wbs3.3836.08
Free Forms & CRM /wp-admin/options-general.php?page=wbs-settings3.3736.79
Install /wp-admin/admin.php?page=wbs-install3.3635.21

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
wbs_options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_free_forms_crm

Browser metrics Passed 4 tests

A check of browser resources used by Free Forms & CRM
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7314.35 ▼0.251.78 ▼0.4244.21 ▼5.34
Dashboard /wp-admin2,237 ▲725.69 ▲0.0194.53 ▲0.8335.92 ▼9.36
Posts /wp-admin/edit.php2,145 ▲422.23 ▲0.2642.27 ▲3.4537.64 ▲1.54
Add New Post /wp-admin/post-new.php1,571 ▲4523.75 ▲0.92644.16 ▼50.4456.57 ▼10.87
Media Library /wp-admin/upload.php1,448 ▲484.29 ▲0.07101.10 ▼10.5443.48 ▼4.88
Free Forms & CRM /wp-admin/admin.php?page=wbs9222.0429.6024.85
Free Forms & CRM /wp-admin/options-general.php?page=wbs-settings9082.0731.2727.98
Install /wp-admin/admin.php?page=wbs-install9272.1740.3036.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_free_forms_crm
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • wbs_options
    • theysaidso_admin_options
    • 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
Good news, no errors were detected

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
Please fix the following items
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/free-forms-and-crm/Widget.class.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/free-forms-and-crm/free-forms-crm.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/free-forms-and-crm/pages/login.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/free-forms-and-crm/pages/jstranslation.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/free-forms-and-crm/pages/links.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/free-forms-and-crm/pages/install.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/free-forms-and-crm/Plugin.class.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/free-forms-and-crm/pages/media-button.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/free-forms-and-crm/pages/options.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
These attributes need your attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can take inspiration from this readme.txt

free-forms-and-crm/free-forms-crm.php 85% from 13 tests

The main file in "Free Forms & CRM" v. 1.4.3 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: Please don't use more than 140 characters for the plugin description (currently 145 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("free-forms-and-crm.php" instead of "free-forms-crm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,279 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
CSS238501,167
PHP1315448881
JavaScript4205231

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity28.00
▷ Minimum class complexity1.00
▷ Maximum class complexity77.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods55
▷ Static methods00.00%
▷ Public methods4887.27%
▷ Protected methods00.00%
▷ Private methods712.73%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
23 PNG files occupy 1.04MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png80.53KB41.39KB▼ 48.60%
assets/screenshot-2.png71.69KB32.09KB▼ 55.24%
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.31KB0.18KB▼ 42.95%
assets/screenshot-5.png205.17KB63.50KB▼ 69.05%
css/images/ui-bg_glass_75_e6e6e6_1x400.png0.29KB0.15KB▼ 49.83%