84% searchplus

Code Review | SearchPlus

WordPress plugin SearchPlus scored84%from 54 tests.

About plugin

  • Plugin page: searchplus
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2022
  • Latest release: Sep 21, 2023
  • Number of updates: 14
  • Update frequency: every 23.1 days
  • Top authors: ailchev (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /267 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.00MB] [CPU: ▼7.91ms] Passed 4 tests

Server-side resources used by SearchPlus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.04 ▼2.51
Dashboard /wp-admin3.32 ▼0.0352.06 ▼11.45
Posts /wp-admin/edit.php3.37 ▲0.0149.79 ▼4.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.98 ▼13.41
Media Library /wp-admin/upload.php3.24 ▲0.0139.87 ▲0.40

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

SearchPlus: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,980 ▲23414.11 ▼0.1918.25 ▲16.4442.25 ▼0.49
Dashboard /wp-admin2,241 ▲385.01 ▼0.85115.21 ▲4.3932.34 ▼11.89
Posts /wp-admin/edit.php2,120 ▲202.23 ▲0.2239.74 ▲2.1333.68 ▼3.16
Add New Post /wp-admin/post-new.php1,697 ▲16623.21 ▼0.03660.16 ▼24.2461.57 ▲4.78
Media Library /wp-admin/upload.php1,484 ▲814.42 ▲0.23101.12 ▼1.5943.56 ▼1.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/searchplus/searchplus.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function searchplus_account_token() in wp-content/plugins/searchplus/includes/searchplus_page_account.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/searchplus/includes/functions.php:37

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: autocomplete, voice, search, type ahead, navigation...

searchplus/searchplus.php Passed 13 tests

This is the main PHP file of "SearchPlus" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
24 characters long description:
Search+ WordPress PlugIn

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected219 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP686169212
JavaScript26226
CSS1061

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin