84% integrate-gravityview-with-polylang

Code Review | Integrate GravityView With Polylang

WordPress plugin Integrate GravityView With Polylang scored84%from 54 tests.

About plugin

  • Plugin page: integrate-gravity...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 8, 2019
  • Latest release: Feb 8, 2019
  • Number of updates: 6
  • Update frequency: every 9.2 days
  • Top authors: gogolian (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /563 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.01MB] [CPU: ▼6.54ms] Passed 4 tests

An overview of server-side resources used by Integrate GravityView With Polylang
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.11 ▼0.03
Dashboard /wp-admin3.31 ▲0.0147.80 ▼1.15
Posts /wp-admin/edit.php3.36 ▲0.0141.98 ▼3.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.20 ▼16.86
Media Library /wp-admin/upload.php3.24 ▲0.0131.75 ▼4.75

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Integrate GravityView With Polylang
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.311.81 ▲0.0743.96 ▲3.78
Dashboard /wp-admin2,192 ▲125.61 ▼0.0585.14 ▼3.4342.77 ▼0.15
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0334.38 ▼1.0933.25 ▲0.13
Add New Post /wp-admin/post-new.php1,526 ▼1222.98 ▲5.05623.95 ▼3.6557.00 ▼7.12
Media Library /wp-admin/upload.php1,403 ▲94.22 ▲0.0693.09 ▼5.9639.91 ▼2.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/integrate-gravityview-with-polylang/integrate-gravityview-with-polylang.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

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
There were not plugin tags detected

integrate-gravityview-with-polylang/integrate-gravityview-with-polylang.php Passed 13 tests

"Integrate GravityView With Polylang" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
77 characters long description:
This is extreamly simple plugin to enable translations of GravityView Labels.

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
Success! There were no dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11138

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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