83% entries-importing-for-gravity-forms

Code Review | Entries Importing for Gravity Forms

WordPress plugin Entries Importing for Gravity Forms scored 83% from 54 tests.

About plugin

  • Plugin page: entries-importing...
  • Plugin version: 2.6.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 18, 2020
  • Latest release: Nov 18, 2020
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: viastudio (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active / 5,105 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.26MB] [CPU: ▼2.21ms] Passed 4 tests

A check of server-side resources used by Entries Importing for Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2545.03 ▲2.12
Dashboard /wp-admin3.62 ▲0.3154.22 ▲3.93
Posts /wp-admin/edit.php3.67 ▲0.3153.93 ▼8.56
Add New Post /wp-admin/post-new.php6.13 ▲0.2595.62 ▼0.83
Media Library /wp-admin/upload.php3.48 ▲0.2539.95 ▼1.57

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 130 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Entries Importing for Gravity Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼1114.74 ▲1.231.92 ▼3.3544.08 ▼2.72
Dashboard /wp-admin2,206 ▼04.85 ▼0.94112.86 ▲15.7043.86 ▲5.14
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0440.19 ▼3.4336.05 ▼0.63
Add New Post /wp-admin/post-new.php1,533 ▲1423.20 ▲0.01674.76 ▼28.7059.40 ▼4.78
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.0194.69 ▼23.2842.31 ▼5.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 48× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/entries-importing-for-gravity-forms/vendor/viastudio/via-php-license/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/entries-importing-for-gravity-forms/vendor/viastudio/via-php-license/via-php-license.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/entries-importing-for-gravity-forms/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/entries-importing-for-gravity-forms/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/entries-importing-for-gravity-forms/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/entries-importing-for-gravity-forms/vendor/guzzlehttp/psr7/src/BufferStream.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/entries-importing-for-gravity-forms/vendor/psr/http-message/src/RequestInterface.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/entries-importing-for-gravity-forms/vendor/guzzlehttp/promises/src/TaskQueue.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/entries-importing-for-gravity-forms/vendor/guzzlehttp/promises/src/CancellationException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/entries-importing-for-gravity-forms/vendor/guzzlehttp/psr7/src/Response.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/entries-importing-for-gravity-forms/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (The Import Screen)
You can look at the official readme.txt

entries-importing-for-gravity-forms/via-gravityforms-entires-import.php 85% from 13 tests

The main PHP file in "Entries Importing for Gravity Forms" ver. 2.6.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Git Repository: Please remove the Git repository from this plugin
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("entries-importing-for-gravity-forms.php" instead of "via-gravityforms-entires-import.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin12,398 lines of code in 120 files:
LanguageFilesBlank linesComment linesLines of code
PHP1001,7664,7818,656
Markdown111,01403,227
JSON700505
make1409
SVG1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity13.64
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces10
Interfaces14
Traits2
Classes67
▷ Abstract classes00.00%
▷ Concrete classes67100.00%
▷ Final classes811.94%
Methods663
▷ Static methods7511.31%
▷ Public methods53380.39%
▷ Protected methods91.36%
▷ Private methods12118.25%
Functions146
▷ Named functions5739.04%
▷ Anonymous functions8960.96%
Constants55
▷ Global constants23.64%
▷ Class constants5396.36%
▷ Public constants53100.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
1 PNG file occupies 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png132.85KB31.06KB▼ 76.62%