89% gol-ibe-search-form

Code Review | GOL IBE Search Form

WordPress plugin GOL IBE Search Form scored89%from 54 tests.

About plugin

  • Plugin page: gol-ibe-search-form
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.2
  • WordPress version: 6.3.1
  • First release: Oct 17, 2019
  • Latest release: Nov 29, 2019
  • Number of updates: 10
  • Update frequency: every 4.9 days
  • Top authors: srbt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /894 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.16ms] Passed 4 tests

Analyzing server-side resources used by GOL IBE Search Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1136.39 ▼2.65
Dashboard /wp-admin3.42 ▲0.1143.62 ▼6.04
Posts /wp-admin/edit.php3.54 ▲0.1844.38 ▼5.88
Add New Post /wp-admin/post-new.php6.02 ▲0.1381.97 ▼2.08
Media Library /wp-admin/upload.php3.35 ▲0.1137.22 ▲5.31
GOL IBE Search Form /wp-admin/options-general.php?page=gol-ibe-search-form/GOL-IBE-Search-Form-settings.php3.3233.32

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
GOL_IBE_settings
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for GOL IBE Search Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.36 ▼0.371.58 ▼0.1736.65 ▼6.66
Dashboard /wp-admin2,221 ▲445.90 ▲0.2191.75 ▲5.4438.05 ▼6.16
Posts /wp-admin/edit.php2,128 ▲312.26 ▲0.3039.73 ▲2.8736.07 ▼3.93
Add New Post /wp-admin/post-new.php1,543 ▲1723.25 ▲0.23691.48 ▲4.6738.83 ▼15.78
Media Library /wp-admin/upload.php1,423 ▲264.43 ▲0.24106.05 ▲6.9144.33 ▼2.04
GOL IBE Search Form /wp-admin/options-general.php?page=gol-ibe-search-form/GOL-IBE-Search-Form-settings.php1,0221.9431.3737.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • GOL_IBE_settings
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: The official readme.txt might help

gol-ibe-search-form/GOL-IBE-Search-Form.php 92% from 13 tests

"GOL IBE Search Form" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gol-ibe-search-form.php" instead of "GOL-IBE-Search-Form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin14,094 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
HTML226309,175
CSS1148383,190
JavaScript5126101,195
PHP49916534

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity11.67
▷ Minimum class complexity3.00
▷ Maximum class complexity19.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods36
▷ Static methods25.56%
▷ Public methods2569.44%
▷ Protected methods00.00%
▷ Private methods1130.56%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin