94% abbs-bing-search

Code Review | Bing Search API Integration

WordPress plugin Bing Search API Integration scored 94% from 54 tests.

About plugin

  • Plugin page: abbs-bing-search
  • Plugin version: 0.3.3
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Apr 18, 2017
  • Latest release: Jul 4, 2017
  • Number of updates: 17
  • Update frequency: every 4.8 days
  • Top authors: askewbrook (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,239 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼299.08ms] Passed 4 tests

A check of server-side resources used by Bing Search API Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1455.02 ▲0.79
Dashboard /wp-admin3.49 ▲0.0933.75 ▲0.63
Posts /wp-admin/edit.php3.72 ▲0.0846.30 ▲8.20
Add New Post /wp-admin/post-new.php6.99 ▼0.0193.06 ▼1,195.29
Media Library /wp-admin/upload.php3.37 ▲0.0824.25 ▼2.45
Bing Search /wp-admin/options-general.php?page=abbs_bing_search_options3.3725.55

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Bing Search API Integration: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,823 ▲8116.00 ▲0.306.47 ▼0.422.76 ▲0.47
Dashboard /wp-admin2,917 ▲566.11 ▼0.20121.60 ▼9.38156.73 ▼6.19
Posts /wp-admin/edit.php2,719 ▲253.24 ▼0.1164.80 ▲1.16141.93 ▼3.26
Add New Post /wp-admin/post-new.php1,767 ▲721.19 ▼1.09443.31 ▲10.03160.47 ▲1.12
Media Library /wp-admin/upload.php1,726 ▲315.55 ▲0.07144.68 ▼7.45192.28 ▼3.84
Bing Search /wp-admin/options-general.php?page=abbs_bing_search_options1,4602.4255.86129.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/abbs-bing-search/abbs-bing-search.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/abbs-bing-search/bing-search-template.php:13

User-side errors Passed 1 test

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


Plugin configuration 97% 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 need to be fixed:
  • Requires at least: Invalid plugin version format
The official readme.txt might help

abbs-bing-search/abbs-bing-search.php Passed 13 tests

Analyzing the main PHP file in "Bing Search API Integration" version 0.3.3
66 characters long description:
Override your wordpress search functionality with Bing Search API.

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
Everything looks great! No dangerous files found in this plugin772 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PO File45252180

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods14.17%
▷ Public methods2291.67%
▷ Protected methods00.00%
▷ Private methods28.33%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin