78% popforms-lite

Code Review | PopForms Lite

WordPress plugin PopForms Lite scored 78% from 54 tests.

About plugin

  • Plugin page: popforms-lite
  • Plugin version: 1.5.1
  • PHP compatiblity: 6.0.2+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 20, 2017
  • Latest release: Oct 1, 2022
  • Number of updates: 9
  • Update frequency: every 207.6 days
  • Top authors: themelooks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 774 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.26MB] [CPU: ▼2.36ms] Passed 4 tests

This is a short check of server-side resources used by PopForms Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2540.79 ▲1.86
Dashboard /wp-admin3.58 ▲0.2746.95 ▼3.77
Posts /wp-admin/edit.php3.69 ▲0.3340.89 ▼11.68
Add New Post /wp-admin/post-new.php6.16 ▲0.27115.69 ▲4.14
Media Library /wp-admin/upload.php3.50 ▲0.2734.79 ▲6.62
Recommended Plugins /wp-admin/admin.php?page=popforms-recommended-plugin3.4430.10
Settings /wp-admin/admin.php?page=popforms-setting-admin3.4835.16

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
popforms_option_name
recovery_mode_email_last_sent
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

PopForms Lite: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,173 ▲42715.42 ▲0.8253.97 ▲52.1762.88 ▲18.51
Dashboard /wp-admin2,236 ▲454.84 ▼1.2299.70 ▼26.6239.23 ▼6.42
Posts /wp-admin/edit.php2,116 ▲242.06 ▲0.0540.67 ▼9.5136.58 ▼2.60
Add New Post /wp-admin/post-new.php1,555 ▲2123.22 ▲0.06625.06 ▼10.5652.06 ▼9.08
Media Library /wp-admin/upload.php1,418 ▲274.32 ▲0.0997.09 ▼3.4642.39 ▼1.47
Recommended Plugins /wp-admin/admin.php?page=popforms-recommended-plugin7021.146.9917.51
Settings /wp-admin/admin.php?page=popforms-setting-admin1,4502.6469.0053.51

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

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=popforms-recommended-plugin
    • > Error in wp-content/plugins/popforms-lite/admin/admin.php+58
    Uncaught Error: Class 'Quicknav\Orgaddons\Org_Addons' not found in wp-content/plugins/popforms-lite/admin/admin.php:58
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): popformsSettingsPage->recommended_plugin_submenu_page()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/admin.php(259): do_action()
    #4 {main}
    thrown

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 take a closer look at the following
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/popforms-lite/inc/pop-functions.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/popforms-lite/admin/admin.php:628
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popforms-lite/inc/pop-enqueue.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/popforms-lite/inc/subscribe-form/pop-subscribe-form.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/popforms-lite/inc/contact-form/pop-contact-form.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/popforms-lite/inc/subscribe-form/pop-subscribe-button.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/popforms-lite/inc/contact-form/pop-contact-button.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (/assets/screenshot-1.jpg), #2 (/assets/screenshot-2.jpg), #3 (/assets/screenshot-3.jpg), #4 (/assets/Screenshot_4.png)
Please take inspiration from this readme.txt

popforms-lite/popform-lite.php 85% from 13 tests

Analyzing the main PHP file in "PopForms Lite" version 1.5.1
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("popforms-lite.php" instead of "popform-lite.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin3,851 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP112692201,313
JavaScript61832971,124
SVG200943
CSS44576471

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity17.75
▷ Minimum class complexity2.00
▷ Maximum class complexity32.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods36
▷ Static methods513.89%
▷ Public methods3391.67%
▷ Protected methods00.00%
▷ Private methods38.33%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin