62% lowlevel-webforms

Code Review | Lowlevel Webforms

WordPress plugin Lowlevel Webforms scored62%from 54 tests.

About plugin

  • Plugin page: lowlevel-webforms
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: May 22, 2014
  • Latest release: Jun 10, 2014
  • Number of updates: 9
  • Update frequency: every 2.8 days
  • Top authors: carloroosen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /829 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.09MB] [CPU: ▼46.35ms] Passed 4 tests

Analyzing server-side resources used by Lowlevel Webforms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▼0.5716.26 ▼28.08
Dashboard /wp-admin2.92 ▼0.3822.16 ▼34.47
Posts /wp-admin/edit.php2.92 ▼0.4318.31 ▼30.81
Add New Post /wp-admin/post-new.php2.92 ▼2.9618.79 ▼92.04
Media Library /wp-admin/upload.php2.92 ▼0.3117.68 ▼16.84
Lowlevel Webforms /wp-admin/plugins.php?page=lowlevelwebforms3.0223.43

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Lowlevel Webforms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲12413.29 ▼1.081.85 ▼0.2145.20 ▲2.08
Dashboard /wp-admin2,240 ▲524.86 ▼0.00103.59 ▲0.7540.24 ▼6.15
Posts /wp-admin/edit.php2,120 ▲312.01 ▼0.0136.22 ▲1.1532.25 ▼3.45
Add New Post /wp-admin/post-new.php1,559 ▲3123.35 ▲0.18685.63 ▲56.1353.68 ▼2.81
Media Library /wp-admin/upload.php1,419 ▲314.21 ▼0.0197.42 ▼1.4244.14 ▲1.42
Lowlevel Webforms /wp-admin/plugins.php?page=lowlevelwebforms8622.0623.2441.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/lowlevel-webforms/lowlevelwebforms.php+495
    Undefined property: WP_Role::$ID
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=lowlevelwebforms
    • > Notice in wp-content/plugins/lowlevel-webforms/lowlevelwebforms.php+498
    Undefined property: WP_Role::$ID

SRP 0% 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 return non-empty strings:
    • > /wp-content/plugins/lowlevel-webforms/template/single-lw_webform.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/lowlevel-webforms/custom/contact/single-lw_webform.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lowlevel-webforms/custom/contact/functions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/lowlevel-webforms/lowlevelwebforms.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/lowlevel-webforms/template/log-in.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
4 plugin tags: html, forms, webform, application

lowlevel-webforms/lowlevelwebforms.php 92% from 13 tests

The main file in "Lowlevel Webforms" v. 0.1 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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("lowlevel-webforms.php" instead of "lowlevelwebforms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected863 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP512554863

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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected