79% liane-form

Code Review | Liane Form

WordPress plugin Liane Form scored79%from 54 tests.

About plugin

  • Plugin page: liane-form
  • Plugin version: 0.1.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 6.3.1
  • First release: Jan 29, 2021
  • Latest release: Feb 10, 2021
  • Number of updates: 5
  • Update frequency: every 2.4 days
  • Top authors: miguelpeixe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /445 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼11.76ms] Passed 4 tests

This is a short check of server-side resources used by Liane Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0339.45 ▼3.92
Dashboard /wp-admin3.39 ▲0.0048.06 ▼22.68
Posts /wp-admin/edit.php3.50 ▲0.1150.66 ▼2.22
Add New Post /wp-admin/post-new.php5.97 ▲0.0490.12 ▼18.21
Media Library /wp-admin/upload.php3.31 ▲0.0435.48 ▼1.21
Liane Form /wp-admin/options-general.php?page=liane_form3.2633.86

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_liane_form_widget

Browser metrics Passed 4 tests

A check of browser resources used by Liane Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7414.52 ▲0.152.54 ▲0.8242.51 ▼1.53
Dashboard /wp-admin2,202 ▲225.61 ▼0.0685.57 ▼17.3438.23 ▼9.68
Posts /wp-admin/edit.php2,101 ▲11.96 ▼0.0439.05 ▲4.5636.27 ▲0.15
Add New Post /wp-admin/post-new.php1,531 ▲523.35 ▲0.02606.76 ▼86.9468.36 ▲12.63
Media Library /wp-admin/upload.php1,398 ▼54.19 ▲0.0395.00 ▼0.6745.07 ▼1.57
Liane Form /wp-admin/options-general.php?page=liane_form8162.0025.6929.61

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 were found after uninstall: 7 options
    • widget_recent-comments
    • widget_liane_form_widget
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=liane_form
    • > Notice in wp-content/plugins/liane-form/settings.php+87
    Trying to access array offset on value of type bool

SRP 50% 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
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/liane-form/liane-form.php:58
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/liane-form/widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/liane-form/settings.php:5

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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: liane, form, shortcode

liane-form/liane-form.php Passed 13 tests

The main file in "Liane Form" v. 0.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
17 characters long description:
Embed Liane Forms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin215 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32116214
JavaScript1011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.67
▷ Minimum class complexity4.00
▷ Maximum class complexity6.00
Average method complexity1.61
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin