84% gf-sort-export

Code Review | Sort Export for Gravity Forms

WordPress plugin Sort Export for Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: gf-sort-export
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 20, 2021
  • Latest release: Apr 7, 2023
  • Number of updates: 12
  • Update frequency: every 49.6 days
  • Top authors: apogi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /629 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Server-side resources used by Sort Export for Gravity Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.91 ▼3.75
Dashboard /wp-admin3.33 ▼0.0246.58 ▼18.47
Posts /wp-admin/edit.php3.38 ▲0.0249.00 ▼3.66
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.75 ▼21.43
Media Library /wp-admin/upload.php3.25 ▲0.0236.03 ▼1.67

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Sort Export for Gravity Forms: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.111.66 ▼0.2342.12 ▲1.95
Dashboard /wp-admin2,198 ▲245.63 ▲0.0993.99 ▲1.5740.69 ▼1.67
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0139.61 ▲0.8235.44 ▼0.30
Add New Post /wp-admin/post-new.php1,526 ▼023.05 ▼0.21614.06 ▼39.1965.68 ▲14.85
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.04102.09 ▼6.8843.63 ▼3.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/gf-sort-export/gf-sort-export.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: gravity forms, apogi, csv, order, store...

gf-sort-export/gf-sort-export.php Passed 13 tests

The primary PHP file in "Sort Export for Gravity Forms" version 1.1.0 is used by WordPress to initiate all plugin functionality
45 characters long description:
Control the order of the fields during export

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin228 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21940103
PHP2193668
CSS212451
Markdown1206

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods120.00%
▷ Protected methods00.00%
▷ Private methods480.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin