94% add-entries-functionality-to-wpforms

Code Review | Add entries functionality to WPForms

WordPress plugin Add entries functionality to WPForms scored 94% from 54 tests.

About plugin

  • Plugin page: add-entries-funct...
  • Plugin version: 1.3.3
  • PHP compatiblity: 7.0.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-5.6.2
  • WordPress version: 5.9.2
  • First release: Jul 23, 2020
  • Latest release: Feb 27, 2021
  • Number of updates: 24
  • Update frequency: every 9.1 days
  • Top authors: ankgne (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active / 1,389 total downloads


Plugin footprint Passed 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.02MB] [CPU: ▼288.88ms] Passed 4 tests

A check of server-side resources used by Add entries functionality to WPForms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.91 ▲7.64
Dashboard /wp-admin3.41 ▲0.0031.97 ▼1.77
Posts /wp-admin/edit.php3.64 ▲0.0041.44 ▲5.27
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.44 ▼1,152.79
Media Library /wp-admin/upload.php3.29 ▼0.0124.25 ▼6.22

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Add entries functionality to WPForms: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,810 ▲5615.62 ▼0.345.56 ▼0.452.88 ▲0.39
Dashboard /wp-admin2,895 ▲346.11 ▲0.02115.35 ▼21.99150.12 ▼9.45
Posts /wp-admin/edit.php2,690 ▼43.23 ▼0.0064.82 ▲0.63144.25 ▲1.91
Add New Post /wp-admin/post-new.php1,719 ▲5121.74 ▲3.70413.31 ▼3.75156.74 ▼3.56
Media Library /wp-admin/upload.php1,698 ▼05.52 ▼0.03137.30 ▲0.89185.84 ▼6.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-entries-functionality-to-wpforms/includes/ank-entry-install.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/add-entries-functionality-to-wpforms/includes/frontend/entries-shortcode.php:64
    • > PHP Fatal error
      Uncaught Error: Class 'Ank_WPForms_DB' not found in wp-content/plugins/add-entries-functionality-to-wpforms/includes/admin/entry/entries-db.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/add-entries-functionality-to-wpforms/includes/admin/entry/entries-table.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/add-entries-functionality-to-wpforms/add-wpform-entries.php:84

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: export wpform entries in csv, wpform, entry, csv, entries...

add-entries-functionality-to-wpforms/add-wpform-entries.php 92% from 13 tests

The main PHP file in "Add entries functionality to WPForms" ver. 1.3.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-entries-functionality-to-wpforms.php" instead of "add-wpform-entries.php")

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
Success! There were no dangerous files found in this plugin1,135 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity16.62
▷ Minimum class complexity3.00
▷ Maximum class complexity32.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes114.29%
▷ Static methods45.00%
▷ Public methods6075.00%
▷ Protected methods56.25%
▷ Private methods1518.75%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.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
There were not PNG files found in your plugin