67% stepform

Code Review | stepFORM

WordPress plugin stepFORM scored67%from 54 tests.

About plugin

  • Plugin page: stepform
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 5, 2019
  • Latest release: Aug 25, 2023
  • Number of updates: 8
  • Update frequency: every 181.4 days
  • Top authors: stepform (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,849 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.82MB] [CPU: ▼32.34ms] Passed 4 tests

This is a short check of server-side resources used by stepFORM
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1142.53 ▼2.20
Dashboard /wp-admin3.13 ▼0.1829.16 ▼25.30
Posts /wp-admin/edit.php3.13 ▼0.2330.11 ▼27.57
Add New Post /wp-admin/post-new.php3.13 ▼2.7632.42 ▼67.91
Media Library /wp-admin/upload.php3.13 ▼0.1026.88 ▼8.59
stepFORM /wp-admin/options-general.php?page=stepFORM3.1327.74

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

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

Browser metrics Passed 4 tests

A check of browser resources used by stepFORM
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8214.27 ▼0.321.65 ▼0.1851.80 ▲4.03
Dashboard /wp-admin2,251 ▲745.74 ▲0.0683.77 ▼15.6074.74 ▲27.79
Posts /wp-admin/edit.php2,153 ▲532.01 ▼0.1133.41 ▼4.0233.56 ▼2.73
Add New Post /wp-admin/post-new.php6,248 ▲4,70819.45 ▼3.43923.65 ▲250.0539.18 ▼17.63
Media Library /wp-admin/upload.php1,446 ▲464.26 ▲0.03104.48 ▼1.0672.17 ▲25.90
stepFORM /wp-admin/options-general.php?page=stepFORM1,0202.3733.3528.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/stepform/includes/page.php+109
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_stepform_id_base
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=stepFORM
    • > Notice in wp-content/plugins/stepform/assets/views/popup.php+39
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=stepFORM
    • > Notice in wp-content/plugins/stepform/assets/views/popup.php+40
    Trying to access array offset on value of type null

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/stepform/stepFORM.php:15

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: quiz, contact-form, form-builder, survey, forms

stepform/stepFORM.php 77% from 13 tests

"stepFORM" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stepform.php" instead of "stepFORM.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,309 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP692160527
JavaScript45518499
CSS4410283

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.50
▷ Minimum class complexity3.00
▷ Maximum class complexity15.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods31
▷ Static methods13.23%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.76MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/menu.png0.92KB0.44KB▼ 52.16%
assets/screenshot-4.png169.90KB55.10KB▼ 67.57%
assets/icon-256x256.png3.68KB1.86KB▼ 49.39%
assets/banner-772x250.png95.13KB37.59KB▼ 60.48%
assets/screenshot-2.png66.19KB25.98KB▼ 60.75%