84% wp-remote-site-search

Code Review | WP Remote Site Search

WordPress plugin WP Remote Site Search scored84%from 54 tests.

About plugin

  • Plugin page: wp-remote-site-se...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 27, 2016
  • Latest release: Sep 21, 2023
  • Number of updates: 15
  • Update frequency: every 163.9 days
  • Top authors: Nikschavan (53.33%)brainstormworg (46.67%)patilvikasj (13.33%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /4,346 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.21ms] Passed 4 tests

A check of server-side resources used by WP Remote Site Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.66 ▼5.49
Dashboard /wp-admin3.34 ▲0.0353.41 ▲1.51
Posts /wp-admin/edit.php3.39 ▲0.0352.95 ▲2.44
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.71 ▼3.28
Media Library /wp-admin/upload.php3.26 ▲0.0338.07 ▲4.76

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Remote Site Search
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲814.35 ▼0.011.74 ▼0.5647.45 ▲2.01
Dashboard /wp-admin2,195 ▲215.57 ▼0.0886.32 ▼18.9340.72 ▼4.06
Posts /wp-admin/edit.php2,103 ▼01.97 ▼0.0535.22 ▼3.9633.90 ▼0.94
Add New Post /wp-admin/post-new.php1,527 ▼123.10 ▲0.08680.62 ▲27.6660.43 ▲4.08
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.0299.39 ▼4.0943.59 ▼2.47

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-remote-site-search/public/includes/shortcode.class.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-remote-site-search/wp-remote-site-search.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-remote-site-search/public/includes/assets.class.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-remote-site-search/public/includes/result-template.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: multisite search, remote site search, live search

wp-remote-site-search/wp-remote-site-search.php Passed 13 tests

The entry point to "WP Remote Site Search" version 1.0.5 is a PHP file that has certain tags in its header comment area
51 characters long description:
Search any WordPress site's data using WP REST API.

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
Everything looks great! No dangerous files found in this plugin590 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS14815283
PHP747116160
JavaScript24651147

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.33
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected