94% rt-search-form

Code Review | Royal Search Form

WordPress plugin Royal Search Form scored 94% from 54 tests.

About plugin

  • Plugin page: rt-search-form
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 5.8.1
  • First release: Aug 7, 2013
  • Latest release: Aug 7, 2013
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: royaltechbd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 857 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼141.39ms] Passed 4 tests

An overview of server-side resources used by Royal Search Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.40 ▲13.10
Dashboard /wp-admin3.06 ▲0.0146.03 ▲1.56
Posts /wp-admin/edit.php3.11 ▲0.0145.67 ▼0.58
Add New Post /wp-admin/post-new.php5.43 ▼0.0195.48 ▼555.37
Media Library /wp-admin/upload.php3.00 ▼0.0031.45 ▼11.16

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Royal Search Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10816.03 ▲0.4410.00 ▼0.3149.06 ▼4.00
Dashboard /wp-admin2,966 ▲325.91 ▼0.11133.33 ▼9.03113.58 ▲1.09
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0063.13 ▼0.4288.87 ▼1.27
Add New Post /wp-admin/post-new.php1,672 ▼018.90 ▲0.09374.19 ▲7.24107.80 ▼6.89
Media Library /wp-admin/upload.php1,810 ▲35.06 ▼0.00145.55 ▼2.90116.42 ▼3.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rt-search-form/rt-search-form.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === rt-search-form === )
The official readme.txt is a good inspiration

rt-search-form/rt-search-form.php Passed 13 tests

"Royal Search Form" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
72 characters long description:
This plugin add search form in post/page using shortcode [rtsearchform].

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110912

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin