77% wp-fastest-site-search

Code Review | WP Fastest Site Search

WordPress plugin WP Fastest Site Search scored77%from 54 tests.

About plugin

  • Plugin page: wp-fastest-site-s...
  • Plugin version: 5.1.24
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 7, 2019
  • Latest release: Nov 28, 2023
  • Number of updates: 136
  • Update frequency: every 13.2 days
  • Top authors: srikanthrenatla (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

200+ active /26,868 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.87MB] [CPU: ▲1.85ms] Passed 4 tests

Server-side resources used by WP Fastest Site Search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.37 ▲0.9149.53 ▲5.86
Dashboard /wp-admin4.21 ▲0.9052.18 ▲2.51
Posts /wp-admin/edit.php4.26 ▲0.9055.99 ▲4.69
Add New Post /wp-admin/post-new.php6.75 ▲0.8690.79 ▼5.65
Media Library /wp-admin/upload.php4.07 ▲0.8442.87 ▲9.58

Server storage [IO: ▲1.59MB] [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: 94 new files
Database: no new tables, 12 new options
New WordPress options
expertrec_options_RO
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
expertrec_options
exp_woocommerce_product_attributes
exp_meta_keys
exp_sentry_enabled
db_upgraded
theysaidso_admin_options
...

Browser metrics Passed 4 tests

A check of browser resources used by WP Fastest Site Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲21414.13 ▼0.5928.46 ▲26.6564.45 ▲22.88
Dashboard /wp-admin2,202 ▲315.75 ▲0.1095.97 ▼3.9694.69 ▲47.14
Posts /wp-admin/edit.php2,119 ▲162.18 ▲0.2338.78 ▼2.0437.15 ▲1.83
Add New Post /wp-admin/post-new.php1,546 ▲123.77 ▲0.78798.88 ▲156.7754.72 ▲6.28
Media Library /wp-admin/upload.php1,416 ▲164.32 ▲0.1199.72 ▼5.3562.17 ▲18.52

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_theysaidso_widget
    • exp_meta_keys
    • exp_woocommerce_product_attributes
    • db_upgraded
    • widget_recent-comments
    • exp_sentry_enabled
    • exp_selected_doc_types
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 8× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-fastest-site-search/hooks/expertrecsearch-ajax.php
    • > /wp-content/plugins/wp-fastest-site-search/views/expertrec-page-header.php
    • > /wp-content/plugins/wp-fastest-site-search/uninstall.php
    • > /wp-content/plugins/wp-fastest-site-search/views/expertrec-login.php
    • > /wp-content/plugins/wp-fastest-site-search/views/expertrec-page-footer.php
    • > /wp-content/plugins/wp-fastest-site-search/hooks/expertrecsearch-caller.php
    • > /wp-content/plugins/wp-fastest-site-search/expertrecsearch.php
    • > /wp-content/plugins/wp-fastest-site-search/views/expertrec-help.php
  • 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-fastest-site-search/views/expertrec-settings.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-fastest-site-search/vendor/sentry/sentry/lib/Raven/Breadcrumbs/MonologHandler.php:6
    • > PHP Warning
      require_once(EXPERTREC_PLUGIN_DIR_PATHhooks/expertrecsearch-caller.php): failed to open stream: No such file or directory in wp-content/plugins/wp-fastest-site-search/includes/class-expertrecsearch.php on line 30
    • > PHP Warning
      Use of undefined constant EXPERTREC_PLUGIN_DIR_PATH - assumed 'EXPERTREC_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-fastest-site-search/includes/class-expertrecsearch.php on line 30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-fastest-site-search/views/expertrec-advanced.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/wp-fastest-site-search/views/expertrec-ui.php:17
    • > PHP Warning
      Use of undefined constant EXPERTREC_PLUGIN_DIR_PATH - assumed 'EXPERTREC_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-fastest-site-search/includes/class-expertrecsearch-activator.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-fastest-site-search/includes/class-expertrecsearch-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-fastest-site-search/public/templates/expertrec-search-page.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-fastest-site-search/views/expertrec-login.php:106

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 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed: Please take inspiration from this readme.txt

wp-fastest-site-search/expertrecsearch.php 77% from 13 tests

The entry point to "WP Fastest Site Search" version 5.1.24 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-fastest-site-search.php" instead of "expertrecsearch.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 242 characters long)
  • 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

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
Good job! No executable or dangerous file extensions detected7,271 lines of code in 72 files:
LanguageFilesBlank linesComment linesLines of code
PHP571,0662,3236,395
JavaScript33480542
JSON300130
SVG20189
HTML12031
YAML17026
XML12022
reStructuredText1201119
make16015
CSS2012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity22.50
▷ Minimum class complexity1.00
▷ Maximum class complexity154.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes30
▷ Abstract classes13.33%
▷ Concrete classes2996.67%
▷ Final classes00.00%
Methods264
▷ Static methods4316.29%
▷ Public methods21280.30%
▷ Protected methods166.06%
▷ Private methods3613.64%
Functions85
▷ Named functions8094.12%
▷ Anonymous functions55.88%
Constants34
▷ Global constants1647.06%
▷ Class constants1852.94%
▷ Public constants18100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/expertrec.png1.26KB0.84KB▼ 33.07%