90% gf-rest-api-for-cross-platform

Code Review | Rest API For Cross Platform Support with Gravity Forms

WordPress plugin Rest API For Cross Platform Support with Gravity Forms scored90%from 54 tests.

About plugin

  • Plugin page: gf-rest-api-for-c...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 19, 2022
  • Latest release: Jun 1, 2022
  • Number of updates: 11
  • Update frequency: every 1.2 days
  • Top authors: weboccults (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /645 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
Installer ran successfully

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

This is a short check of server-side resources used by Rest API For Cross Platform Support with Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.98 ▼3.07
Dashboard /wp-admin3.31 ▲0.0054.92 ▲6.33
Posts /wp-admin/edit.php3.36 ▲0.0052.75 ▲5.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.84 ▼1.98
Media Library /wp-admin/upload.php3.23 ▲0.0037.57 ▲1.45

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Rest API For Cross Platform Support with Gravity Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.301.80 ▲0.1137.68 ▼1.76
Dashboard /wp-admin2,195 ▲185.63 ▲0.0688.33 ▲1.5940.98 ▼1.45
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0140.09 ▲6.2137.54 ▲0.18
Add New Post /wp-admin/post-new.php1,526 ▼023.15 ▼0.44670.68 ▲69.6855.09 ▲5.06
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0297.76 ▲1.4547.14 ▲2.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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 to be fixed:
  • Requires at least: Version not formatted correctly
You can look at the official readme.txt

gf-rest-api-for-cross-platform/gf-rest-api-for-cross-platform.php Passed 13 tests

"Rest API For Cross Platform Support with Gravity Forms" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
84 characters long description:
Create Rest API to save form data from cross platform to gravity forms in WordPress.

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
Everything looks great! No dangerous files found in this plugin441 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27063441

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin