90% extend-search-block

Code Review | Extend Search Block

WordPress plugin Extend Search Block scored90%from 54 tests.

About plugin

  • Plugin page: extend-search-block
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 6, 2023
  • Latest release: Apr 6, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: webmandesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /146 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Extend Search Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.40 ▲1.52
Dashboard /wp-admin3.35 ▲0.0545.23 ▼12.35
Posts /wp-admin/edit.php3.40 ▲0.0544.44 ▲0.56
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.32 ▼6.52
Media Library /wp-admin/upload.php3.27 ▲0.0533.85 ▲1.02

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Extend Search Block: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.171.95 ▲0.1342.20 ▼1.21
Dashboard /wp-admin2,206 ▲215.75 ▼0.0597.54 ▼24.5639.63 ▼4.00
Posts /wp-admin/edit.php2,092 ▲241.99 ▼0.0534.87 ▼1.2330.52 ▼0.77
Add New Post /wp-admin/post-new.php1,686 ▲16724.32 ▲1.11589.66 ▼109.1847.27 ▼9.41
Media Library /wp-admin/upload.php1,388 ▼04.27 ▲0.0996.60 ▼9.9443.17 ▼7.78

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

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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: webman design, blocks, webman, search, modification...

extend-search-block/extend-search-block.php Passed 13 tests

Analyzing the main PHP file in "Extend Search Block" version 1.0.0
69 characters long description:
Extending WordPress Search block with search results modifier fields.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin350 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP3104180210
JavaScript2342378
PO File17746
Sass14812
Markdown1203
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.50
▷ Minimum class complexity5.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods8100.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin