73% database-for-wpforms

Code Review | Database Addon For WPForms ( wpforms entries ) - WPFormsDB

WordPress plugin Database Addon For WPForms ( wpforms entries ) - WPFormsDB scored73%from 54 tests.

About plugin

  • Plugin page: database-for-wpforms
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Apr 9, 2019
  • Latest release: Sep 20, 2023
  • Number of updates: 26
  • Update frequency: every 62.5 days
  • Top authors: wpdebuglog (100%)

Code review

54 tests

User reviews

96 reviews

Install metrics

20,000+ active /82,237 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼8.39ms] Passed 4 tests

An overview of server-side resources used by Database Addon For WPForms ( wpforms entries ) - WPFormsDB
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.57 ▼5.63
Dashboard /wp-admin3.44 ▲0.0945.28 ▼11.79
Posts /wp-admin/edit.php3.55 ▲0.2046.21 ▲2.30
Add New Post /wp-admin/post-new.php6.02 ▲0.1381.95 ▼18.45
Media Library /wp-admin/upload.php3.36 ▲0.1340.27 ▲3.26

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Database Addon For WPForms ( wpforms entries ) - WPFormsDB
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8614.77 ▲0.021.70 ▼0.0137.30 ▼5.40
Dashboard /wp-admin2,242 ▲685.56 ▼0.0088.80 ▼12.9538.94 ▼8.01
Posts /wp-admin/edit.php2,143 ▲431.99 ▼0.0037.11 ▲0.1733.38 ▲1.33
Add New Post /wp-admin/post-new.php1,550 ▲1518.16 ▲0.03598.85 ▼20.4473.80 ▼2.44
Media Library /wp-admin/upload.php1,447 ▲474.18 ▼0.0494.80 ▼10.3541.65 ▼9.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_wpforms_db
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • WPFormsDB_view_install_date
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/database-for-wpforms/database-for-wp-forms.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
3 plugin tags: forms, wpform, wpforms

database-for-wpforms/database-for-wp-forms.php 77% from 13 tests

The primary PHP file in "Database Addon For WPForms ( wpforms entries ) - WPFormsDB" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("database-for-wpforms.php" instead of "database-for-wp-forms.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")
  • Text Domain: Please use dashes and lowercase characters for text domains

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 plugin683 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5218186665
CSS10018

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity13.33
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity3.74
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2385.19%
▷ Protected methods13.70%
▷ Private methods311.11%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin