90% wp-extended-search

Code Review | WP Extended Search

WordPress plugin WP Extended Search scored90%from 54 tests.

About plugin

  • Plugin page: wp-extended-search
  • Plugin version: 2.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 14, 2014
  • Latest release: Apr 8, 2023
  • Number of updates: 55
  • Update frequency: every 56.9 days
  • Top authors: 5um17 (100%)

Code review

54 tests

User reviews

64 reviews

Install metrics

20,000+ active /259,111 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.27MB] [CPU: ▼5.98ms] Passed 4 tests

An overview of server-side resources used by WP Extended Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.94 ▼3.00
Dashboard /wp-admin3.61 ▲0.3148.87 ▲4.45
Posts /wp-admin/edit.php3.72 ▲0.3750.25 ▼5.34
Add New Post /wp-admin/post-new.php6.21 ▲0.3383.44 ▼20.01
Media Library /wp-admin/upload.php3.53 ▲0.3046.26 ▲11.60
Search Settings /wp-admin/admin.php?page=wp-es3.5037.29
Setting Names /wp-admin/edit.php?post_type=wpes_setting3.5739.46

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_wpes_search_widget
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Extended Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14813.34 ▼1.031.71 ▼0.1339.08 ▼3.39
Dashboard /wp-admin2,286 ▲955.87 ▲0.98104.59 ▲2.4240.84 ▼1.55
Posts /wp-admin/edit.php2,179 ▲902.06 ▲0.0639.25 ▼2.6434.24 ▼2.45
Add New Post /wp-admin/post-new.php1,554 ▲4017.47 ▼5.92648.74 ▲33.4248.95 ▼1.15
Media Library /wp-admin/upload.php1,474 ▲894.30 ▲0.0997.93 ▲2.9142.11 ▲0.53
Search Settings /wp-admin/admin.php?page=wp-es1,3102.7049.3440.36
Setting Names /wp-admin/edit.php?post_type=wpes_setting1,1401.9937.1931.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_wpes_search_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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: search forms, advance search, tag search, postmeta, category search...

wp-extended-search/wp-es.php 92% from 13 tests

The main PHP script in "WP Extended Search" version 2.1.2 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-extended-search.php" instead of "wp-es.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,355 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP82668271,267
JavaScript3122158
CSS331215
XML10015

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity24.86
▷ Minimum class complexity4.00
▷ Maximum class complexity67.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods82
▷ Static methods11.22%
▷ Public methods7996.34%
▷ Protected methods00.00%
▷ Private methods33.66%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants6
▷ Global constants6100.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
13 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
assets/css/jQueryUI/images/ui-bg_flat_100_2a9fb6_40x100.png0.20KB0.08KB▼ 57.77%
assets/css/jQueryUI/images/ui-bg_flat_100_ffffff_40x100.png0.20KB0.08KB▼ 58.17%
assets/css/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%
assets/css/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%