83% display-gravity-form-entry-anywhere

Code Review | Display gravity form entry anywhere

WordPress plugin Display gravity form entry anywhere scored83%from 54 tests.

About plugin

  • Plugin page: display-gravity-f...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2021
  • Latest release: Nov 6, 2021
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: myousefi08 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /376 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Display gravity form entry anywhere
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.57 ▼14.35
Dashboard /wp-admin3.31 ▲0.0151.95 ▲0.71
Posts /wp-admin/edit.php3.37 ▲0.0150.00 ▼4.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.77 ▼11.22
Media Library /wp-admin/upload.php3.24 ▲0.0134.90 ▼3.33

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Display gravity form entry anywhere
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.22 ▼0.381.99 ▼0.4344.69 ▼18.22
Dashboard /wp-admin2,197 ▲205.61 ▲0.0587.71 ▼0.3742.68 ▲2.24
Posts /wp-admin/edit.php2,102 ▲21.99 ▼0.0236.46 ▼2.8138.11 ▲1.78
Add New Post /wp-admin/post-new.php1,528 ▼923.49 ▲5.14683.20 ▲31.3361.05 ▼3.33
Media Library /wp-admin/upload.php1,396 ▼74.10 ▼0.0596.07 ▼6.3046.19 ▲1.67

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/display-gravity-form-entry-anywhere/public/partials/bw_gfed-public-display.php
    • > /wp-content/plugins/display-gravity-form-entry-anywhere/admin/partials/bw_gfed-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1), #2 (screenshot-2), #3 (screenshot-3), #4 (screenshot-4)
Please take inspiration from this readme.txt

display-gravity-form-entry-anywhere/bw_gfed.php 85% from 13 tests

Analyzing the main PHP file in "Display gravity form entry anywhere" version 1.0.3
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: The principal plugin file should be the same as the plugin slug ("display-gravity-form-entry-anywhere.php" instead of "bw_gfed.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected280 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP12143529251
CSS14023
JavaScript24546

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.43
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin