93% gf-binder

Code Review | Google Form Binder

WordPress plugin Google Form Binder scored 93% from 54 tests.

About plugin

  • Plugin page: gf-binder
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.8.1
  • First release: Jul 24, 2017
  • Latest release: Dec 4, 2017
  • Number of updates: 7
  • Update frequency: every 19.2 days
  • Top authors: dangngocbinh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 819 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼144.12ms] Passed 4 tests

Analyzing server-side resources used by Google Form Binder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1238.48 ▲9.11
Dashboard /wp-admin3.07 ▲0.0143.07 ▼10.29
Posts /wp-admin/edit.php3.12 ▲0.0147.19 ▼2.22
Add New Post /wp-admin/post-new.php5.43 ▼0.0195.06 ▼562.88
Media Library /wp-admin/upload.php3.01 ▲0.0134.70 ▼1.08

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Google Form Binder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲8715.91 ▲0.417.65 ▼2.4552.33 ▲0.34
Dashboard /wp-admin2,974 ▲405.88 ▼0.23148.37 ▼0.60119.96 ▼6.05
Posts /wp-admin/edit.php2,743 ▲42.69 ▼0.0065.64 ▼22.2996.46 ▼1.35
Add New Post /wp-admin/post-new.php1,607 ▲10718.87 ▲0.05386.35 ▼23.15106.22 ▼13.41
Media Library /wp-admin/upload.php1,811 ▲45.01 ▼0.01166.69 ▲3.65121.14 ▼0.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/gf-binder/public/partials/gf-binding-public-display.php
    • > /wp-content/plugins/gf-binder/admin/partials/gf-binding-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add descriptions for screenshots #1, #2 in gf-binder/assets to your readme.txt
  • Plugin Name: Please specify the plugin name on the first line ( === gf-binder === )
The official readme.txt might help

gf-binder/gf-binding.php 85% from 13 tests

The entry point to "Google Form Binder" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gf-binder.php" instead of "gf-binding.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,876 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP154148331,779
JavaScript2222763
CSS24434

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity34.64
▷ Minimum class complexity1.00
▷ Maximum class complexity198.00
Average method complexity3.94
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods126
▷ Static methods43.17%
▷ Public methods10381.75%
▷ Protected methods1612.70%
▷ Private methods75.56%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.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
No PNG images were found in this plugin