89% basepress-searchwp-integration

Code Review | BasePress Knowledge Base + SearchWP Integration

WordPress plugin BasePress Knowledge Base + SearchWP Integration scored89%from 54 tests.

About plugin

  • Plugin page: basepress-searchw...
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7
  • WordPress version: 6.3.1
  • First release: Nov 12, 2019
  • Latest release: Mar 11, 2021
  • Number of updates: 11
  • Update frequency: every 44.6 days
  • Top authors: codesavory (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /785 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.93ms] Passed 4 tests

An overview of server-side resources used by BasePress Knowledge Base + SearchWP Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.00 ▼5.75
Dashboard /wp-admin3.36 ▲0.0647.99 ▼5.87
Posts /wp-admin/edit.php3.47 ▲0.1246.49 ▼9.88
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.19 ▼18.23
Media Library /wp-admin/upload.php3.28 ▲0.0536.29 ▲0.71

Server storage [IO: ▲0.05MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

BasePress Knowledge Base + SearchWP Integration: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.35 ▼0.251.61 ▼0.0941.09 ▼2.21
Dashboard /wp-admin2,205 ▲285.56 ▼0.0987.97 ▼13.0238.62 ▼5.14
Posts /wp-admin/edit.php2,113 ▲132.02 ▲0.0635.97 ▼2.1735.39 ▼2.58
Add New Post /wp-admin/post-new.php1,534 ▼123.14 ▲4.85655.26 ▲13.6167.71 ▼6.50
Media Library /wp-admin/upload.php1,407 ▲74.20 ▼0.0196.62 ▼7.4843.58 ▼1.03

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: faq, documentation, search, help desk, searchwp...

basepress-searchwp-integration/basepress-searchwp-integration.php 85% from 13 tests

"BasePress Knowledge Base + SearchWP Integration" version 1.1.3'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:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected233 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP283149233

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity49.00
▷ Minimum class complexity49.00
▷ Maximum class complexity49.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin