68% rao-forms

Code Review | RAO Forms

WordPress plugin RAO Forms scored68%from 54 tests.

About plugin

  • Plugin page: rao-forms
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2023
  • Latest release: Feb 1, 2023
  • Number of updates: 5
  • Update frequency: every 20.2 days
  • Top authors: raoinfotech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /155 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.14ms] Passed 4 tests

An overview of server-side resources used by RAO Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.68 ▼5.34
Dashboard /wp-admin3.35 ▲0.0551.05 ▼1.65
Posts /wp-admin/edit.php3.47 ▲0.1148.70 ▲0.35
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.78 ▼21.92
Media Library /wp-admin/upload.php3.28 ▲0.0539.27 ▲3.89

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 53 new files
Database: 1 new table, 6 new options
New tables
wp_rao_form_connections
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

RAO Forms: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲13413.40 ▼1.147.94 ▲6.0443.92 ▼0.89
Dashboard /wp-admin2,215 ▲385.56 ▲0.0586.54 ▼5.2035.90 ▼11.08
Posts /wp-admin/edit.php2,123 ▲202.03 ▲0.0539.18 ▲0.1633.54 ▲0.13
Add New Post /wp-admin/post-new.php1,546 ▲2023.27 ▼0.47650.79 ▼38.7356.20 ▲7.94
Media Library /wp-admin/upload.php1,426 ▲294.26 ▲0.07101.19 ▲1.5041.65 ▼4.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_rao_form_connections
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/rao-forms/admin/partials/rao-forms-admin-display.php
    • > /wp-content/plugins/rao-forms/public/partials/rao-forms-public-display.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'RFIP\\Admin\\Settings\\RFIP_Menu' not found in wp-content/plugins/rao-forms/admin/src/Settings/RFIP_SubMenu.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/rao-forms/admin/partials/setup/connect-to-ninjaforms.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/rao-forms/admin/partials/setup/connect-to-cf7.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'RFIP\\Admin\\Settings\\RFIP_WordpressSettings' not found in wp-content/plugins/rao-forms/admin/src/Settings/RFIP_Menu.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/rao-forms/admin/partials/setup/connect-to-wpforms.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/rao-forms/admin/partials/setup/authorize.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in rao-forms/assets to your readme.txt
You can take inspiration from this readme.txt

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

Analyzing the main PHP file in "RAO Forms" version 1.0.0
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin3,432 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP347459722,664
CSS312128572
JavaScript519111183
JSON20013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.42
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes19
▷ Abstract classes15.26%
▷ Concrete classes1894.74%
▷ Final classes00.00%
Methods121
▷ Static methods1915.70%
▷ Public methods11292.56%
▷ Protected methods21.65%
▷ Private methods75.79%
Functions20
▷ Named functions1995.00%
▷ Anonymous functions15.00%
Constants7
▷ Global constants7100.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 images were found in this plugin