90% gf-json-export

Code Review | GF JSON Export Add-On

WordPress plugin GF JSON Export Add-On scored90%from 54 tests.

About plugin

  • Plugin page: gf-json-export
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2016
  • Latest release: Oct 25, 2016
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: fissionstrategy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,267 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.11ms] Passed 4 tests

Server-side resources used by GF JSON Export Add-On
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.38 ▼7.06
Dashboard /wp-admin3.31 ▲0.0043.89 ▼4.63
Posts /wp-admin/edit.php3.36 ▲0.0042.27 ▼3.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.21 ▼3.97
Media Library /wp-admin/upload.php3.23 ▲0.0032.75 ▼8.77

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for GF JSON Export Add-On
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.171.61 ▼0.1840.79 ▼6.59
Dashboard /wp-admin2,203 ▲155.79 ▼0.0393.00 ▼24.8040.48 ▼1.64
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0434.46 ▼1.1534.16 ▲1.39
Add New Post /wp-admin/post-new.php1,381 ▼1118.81 ▲0.39516.20 ▼85.3673.59 ▲26.22
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0296.48 ▼10.2841.86 ▼4.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: forms, json, export

gf-json-export/jsonexport.php 92% from 13 tests

The primary PHP file in "GF JSON Export Add-On" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gf-json-export.php" instead of "jsonexport.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected234 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36923234

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.00
▷ Minimum class complexity2.00
▷ Maximum class complexity16.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin