84% refyn-search

Code Review | Refyn Search

WordPress plugin Refyn Search scored 84% from 54 tests.

About plugin

  • Plugin page: refyn-search
  • Plugin version: 2.1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.5
  • WordPress version: 6.3.1
  • First release: Dec 6, 2017
  • Latest release: Jun 11, 2021
  • Number of updates: 70
  • Update frequency: every 18.4 days
  • Top authors: liamtools (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,063 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.26ms] Passed 4 tests

An overview of server-side resources used by Refyn Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.22 ▼13.18
Dashboard /wp-admin3.38 ▲0.0846.39 ▼0.78
Posts /wp-admin/edit.php3.43 ▲0.0744.93 ▼7.28
Add New Post /wp-admin/post-new.php5.96 ▲0.0792.75 ▲0.21
Media Library /wp-admin/upload.php3.30 ▲0.0742.35 ▲10.16

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Refyn Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.31 ▼0.995.28 ▲3.3337.19 ▼10.42
Dashboard /wp-admin2,218 ▲335.86 ▲0.98101.16 ▼5.5474.24 ▲36.48
Posts /wp-admin/edit.php2,104 ▲122.04 ▲0.0335.63 ▼4.5733.22 ▲0.39
Add New Post /wp-admin/post-new.php1,680 ▲14722.57 ▼0.70653.74 ▼3.4350.70 ▼8.12
Media Library /wp-admin/upload.php1,403 ▲154.16 ▼0.08114.63 ▲14.2343.06 ▲0.88

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Even though everything seems fine, this is not an exhaustive test

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_delete_post() in wp-content/plugins/refyn-search/uninstall.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/refyn-search/includes/admin/class-refyn-search-settings.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% 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 require attention:
  • Screenshots: These screenshots need descriptions #5, #6 in refyn-search/assets to your readme.txt
You can look at the official readme.txt

refyn-search/refyn-search.php Passed 13 tests

"Refyn Search" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
117 characters long description:
REFYN is Smarter than Google. Text & Product search with Artificial Intelligence and Never Zero Results or Not Found.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,547 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP67137765
CSS11042574
JavaScript1438208

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin