84% forms-rb

Code Review | Forms Rb

WordPress plugin Forms Rb scored 84% from 54 tests.

About plugin

  • Plugin page: forms-rb
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2
  • WordPress version: 6.3.1
  • First release: Aug 11, 2022
  • Latest release: May 18, 2023
  • Number of updates: 14
  • Update frequency: every 20.1 days
  • Top authors: rbplugins (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active / 1,220 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.07MB] [CPU: ▼14.34ms] Passed 4 tests

An overview of server-side resources used by Forms Rb
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0947.63 ▲3.59
Dashboard /wp-admin3.37 ▲0.0748.32 ▼68.47
Posts /wp-admin/edit.php3.43 ▲0.0855.26 ▲5.31
Add New Post /wp-admin/post-new.php5.97 ▲0.09110.23 ▲19.23
Media Library /wp-admin/upload.php3.29 ▲0.0638.39 ▲2.23
All Forms /wp-admin/edit.php?post_type=rbforms_forms3.3539.65
Add New /wp-admin/post-new.php?post_type=rbforms_forms3.3458.83

Server storage [IO: ▲1.30MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
rbforms_installDate
db_upgraded
rbforms_afterInstall
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
rbforms_installVersion
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Forms Rb
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲6113.30 ▲0.061.83 ▼0.4139.76 ▼3.84
Dashboard /wp-admin2,246 ▲374.86 ▼1.00103.94 ▼28.1240.33 ▼2.56
Posts /wp-admin/edit.php2,132 ▲432.02 ▲0.0236.28 ▲1.3734.46 ▲1.65
Add New Post /wp-admin/post-new.php1,571 ▲16022.99 ▲5.24608.70 ▼64.1154.07 ▲3.56
Media Library /wp-admin/upload.php1,428 ▲374.24 ▲0.0699.61 ▲3.2740.15 ▼2.73
All Forms /wp-admin/edit.php?post_type=rbforms_forms1,1201.9932.1133.61
Add New /wp-admin/post-new.php?post_type=rbforms_forms1,6126.45213.2083.94

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • rbforms_afterInstall
    • rbforms_installDate
    • widget_recent-comments
    • widget_recent-posts
    • rbforms_installVersion
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/forms-rb/forms-rb.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Forms main options), #2 (Contact form in the popup), #3 (Saved records in the admin section), #4 (Form fields section), #5 (Contact form dialog settings), #6 (Contact form floating button icon color selection), #7 (Contact form floating button icon selection), #8 (Contact form floating button on the page)
The official readme.txt might help

forms-rb/forms-rb.php 92% from 13 tests

The main file in "Forms Rb" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.1" instead of "5.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,704 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP104662741,701
JavaScript3063

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity19.40
▷ Minimum class complexity1.00
▷ Maximum class complexity94.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods92
▷ Static methods1010.87%
▷ Public methods8592.39%
▷ Protected methods00.00%
▷ Private methods77.61%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants13
▷ Global constants646.15%
▷ Class constants753.85%
▷ Public constants7100.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