10% convertable-contact-form-builder-analytics-and-lead-management-dashboard

Code Review | Convertable Contact Form Builder Analytics and Lead Management Dashboard

WordPress plugin Convertable Contact Form Builder Analytics and Lead Management Dashboard scored10%from 54 tests.

About plugin

  • Plugin page: convertable-conta...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 31, 2013
  • Latest release: Oct 14, 2016
  • Number of updates: 68
  • Update frequency: every 15.9 days
  • Top authors: convertable (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

40+ active /16,766 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/convertable-contact-form-builder-analytics-and-lead-management-dashboard/convertable-wp.php+1467
    syntax error, unexpected 'endif' (T_ENDIF)

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

Analyzing server-side resources used by Convertable Contact Form Builder Analytics and Lead Management Dashboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.55 ▼2.59
Dashboard /wp-admin3.31 ▲0.0044.08 ▼3.00
Posts /wp-admin/edit.php3.36 ▲0.0044.63 ▼0.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.86 ▼3.77
Media Library /wp-admin/upload.php3.23 ▲0.0035.85 ▼2.08

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Convertable Contact Form Builder Analytics and Lead Management Dashboard: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.44 ▲0.131.76 ▼0.0940.88 ▼4.86
Dashboard /wp-admin2,209 ▲215.90 ▲0.0398.45 ▼11.5637.55 ▼5.64
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0841.07 ▲2.6135.76 ▼1.09
Add New Post /wp-admin/post-new.php1,535 ▲223.28 ▲0.10629.97 ▼17.4361.49 ▼12.92
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0599.26 ▼1.0645.43 ▲3.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/convertable-contact-form-builder-analytics-and-lead-management-dashboard/views/footer.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/convertable-contact-form-builder-analytics-and-lead-management-dashboard/views/header.php:3
    • > PHP Parse error
      syntax error, unexpected 'endif' (T_ENDIF) in wp-content/plugins/convertable-contact-form-builder-analytics-and-lead-management-dashboard/convertable-wp.php on line 1467

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Customize your form with the form builder) image not found
  • Tags: There are too many tags (70 tag instead of maximum 10)
The official readme.txt is a good inspiration

convertable-contact-form-builder-analytics-and-lead-management-dashboard/convertable-wp.php 92% from 13 tests

The main PHP script in "Convertable Contact Form Builder Analytics and Lead Management Dashboard" version 1.4 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("convertable-contact-form-builder-analytics-and-lead-management-dashboard.php" instead of "convertable-wp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,602 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP51772201,770
JavaScript11364462
CSS3241353
PO File10017

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity74.67
▷ Minimum class complexity12.00
▷ Maximum class complexity148.00
Average method complexity5.09
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods54
▷ Static methods35.56%
▷ Public methods4685.19%
▷ Protected methods814.81%
▷ Private methods00.00%
Functions0
▷ Named functions00.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
28 PNG files occupy 1.05MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/screenshot-2.png92.71KB36.98KB▼ 60.11%
assets/images/icon-convertable.png1.31KB1.24KB▼ 5.60%
assets/images/screenshot-3.png149.97KB59.54KB▼ 60.30%
wp-step6.png13.35KB6.57KB▼ 50.80%
assets/screenshot-4.png129.66KB52.45KB▼ 59.55%