84% add-entries-functionality-to-wpforms

Code Review | Add entries functionality to WPForms

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

About plugin

  • Plugin page: add-entries-funct...
  • Plugin version: 1.3.5
  • PHP compatiblity: 7.0.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-5.9.3
  • WordPress version: 6.3.1
  • First release: Jul 23, 2020
  • Latest release: May 8, 2022
  • Number of updates: 28
  • Update frequency: every 23.4 days
  • Top authors: ankgne (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /3,004 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.58ms] Passed 4 tests

This is a short check of server-side resources used by Add entries functionality to WPForms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.48 ▼1.04
Dashboard /wp-admin3.31 ▼0.0443.29 ▼15.70
Posts /wp-admin/edit.php3.36 ▲0.0046.24 ▲0.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.16 ▼19.69
Media Library /wp-admin/upload.php3.23 ▲0.0031.03 ▼1.89

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Add entries functionality to WPForms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.20 ▼1.384.57 ▲2.7538.85 ▼4.78
Dashboard /wp-admin2,200 ▲155.81 ▲0.9098.51 ▼9.3840.20 ▼7.86
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0340.22 ▲1.8935.07 ▼1.33
Add New Post /wp-admin/post-new.php1,542 ▲1318.04 ▼0.03637.23 ▼48.6857.28 ▲0.64
Media Library /wp-admin/upload.php1,391 ▲94.21 ▲0.0195.27 ▼5.1541.96 ▼4.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
The following issues need your attention
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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
    • > 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 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: Call to undefined function add_action() in wp-content/plugins/add-entries-functionality-to-wpforms/includes/ank-entry-install.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: entry, export, entries, csv, wprforms...

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.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as 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 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,135 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP93531,0041,061
CSS3161471
JavaScript31203

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for 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
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes114.29%
Methods80
▷ Static methods45.00%
▷ Public methods6075.00%
▷ Protected methods56.25%
▷ Private methods1518.75%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected