84% flooows-form-leads-store

Code Review | Flooows Elementor PRO Lead DB

WordPress plugin Flooows Elementor PRO Lead DB scored84%from 54 tests.

About plugin

  • Plugin page: flooows-form-lead...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4
  • WordPress version: 6.3.1
  • First release: Apr 7, 2020
  • Latest release: May 25, 2020
  • Number of updates: 10
  • Update frequency: every 5.2 days
  • Top authors: fuertedev01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /561 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.00MB] [CPU: ▼7.58ms] Passed 4 tests

A check of server-side resources used by Flooows Elementor PRO Lead DB
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.50 ▲2.44
Dashboard /wp-admin3.31 ▼0.0348.14 ▼9.20
Posts /wp-admin/edit.php3.36 ▲0.0141.04 ▼4.10
Add New Post /wp-admin/post-new.php5.91 ▲0.0381.73 ▼16.10
Media Library /wp-admin/upload.php3.24 ▲0.0134.32 ▼0.91

Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Flooows Elementor PRO Lead DB
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.10 ▼0.251.75 ▲0.0844.40 ▲3.49
Dashboard /wp-admin2,218 ▲375.66 ▲0.0588.33 ▼14.5842.03 ▼1.22
Posts /wp-admin/edit.php2,120 ▲202.00 ▲0.0633.78 ▼1.4236.43 ▼1.42
Add New Post /wp-admin/post-new.php1,543 ▲623.29 ▲5.27669.22 ▲31.1662.76 ▼11.34
Media Library /wp-admin/upload.php1,420 ▲234.18 ▲0.0194.92 ▼7.7843.70 ▲0.33

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/flooows-form-leads-store/flooows_form_leads_store_for_elementor_pro.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt might help

flooows-form-leads-store/flooows_form_leads_store_for_elementor_pro.php 92% from 13 tests

"Flooows Elementor PRO Lead DB" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("flooows-form-leads-store.php" instead of "flooows_form_leads_store_for_elementor_pro.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin434 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15117393
JavaScript135937
CSS15104

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png11.45KB4.71KB▼ 58.86%
assets/screenshot-1.png31.16KB16.51KB▼ 47.02%
assets/icon-256x256.png31.23KB12.71KB▼ 59.30%