78% searchie

Code Review | Searchie

WordPress plugin Searchie scored78%from 54 tests.

About plugin

  • Plugin page: searchie
  • Plugin version: 1.17.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: May 22, 2020
  • Latest release: Oct 12, 2022
  • Number of updates: 52
  • Update frequency: every 17.0 days
  • Top authors: allan.casilum (98.08%)searchie (3.85%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /4,571 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼5.13ms] Passed 4 tests

An overview of server-side resources used by Searchie
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3947.98 ▲8.03
Dashboard /wp-admin3.71 ▲0.4051.65 ▲4.64
Posts /wp-admin/edit.php3.75 ▲0.4059.49 ▲7.53
Add New Post /wp-admin/post-new.php5.23 ▼0.6556.61 ▼40.73
Media Library /wp-admin/upload.php3.60 ▲0.3741.36 ▲9.93
Widgets /wp-admin/admin.php?page=searchie-widgets3.6538.68
Playlists /wp-admin/admin.php?page=searchie-playlists3.6540.11
Media /wp-admin/admin.php?page=searchie-media3.7239.54
Settings /wp-admin/admin.php?page=searchie-settings3.6239.02

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 564 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Searchie
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,115 ▲36918.92 ▲4.551.78 ▼0.2937.01 ▼5.53
Dashboard /wp-admin2,487 ▲30210.12 ▲4.24187.50 ▲78.6886.37 ▲42.54
Posts /wp-admin/edit.php2,413 ▲3276.56 ▲4.52100.66 ▲62.8780.36 ▲46.65
Add New Post /wp-admin/post-new.php6,356 ▲4,83722.71 ▼0.37960.50 ▲308.3947.74 ▼3.10
Media Library /wp-admin/upload.php1,549 ▲1587.15 ▲2.97115.00 ▲14.8573.56 ▲28.46
Widgets /wp-admin/admin.php?page=searchie-widgets1,1506.1766.4157.14
Playlists /wp-admin/admin.php?page=searchie-playlists1,1536.2366.5657.42
Media /wp-admin/admin.php?page=searchie-media1,1506.2769.0958.77
Settings /wp-admin/admin.php?page=searchie-settings1,1506.1564.7359.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 13× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/searchie/admin/partials/dashboard/media/preview-modal.php
    • > /wp-content/plugins/searchie/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
    • > /wp-content/plugins/searchie/admin/partials/dashboard/nav.php
    • > /wp-content/plugins/searchie/admin/partials/dashboard/settings/part/profile.php
    • > /wp-content/plugins/searchie/admin/partials/dashboard/playlists/preview-modal.php
    • > /wp-content/plugins/searchie/public/partials/searchie-public-display.php
    • > /wp-content/plugins/searchie/admin/partials/shortcodes/playlist-embed.php
    • > /wp-content/plugins/searchie/admin/partials/dashboard/settings/js.php
    • > /wp-content/plugins/searchie/admin/partials/dashboard/pagination.php
    • > /wp-content/plugins/searchie/admin/partials/dashboard/widgets/preview-modal.php
  • 191× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\File_Field' not found in wp-content/plugins/searchie/vendor/htmlburger/carbon-fields/core/Field/Image_Field.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/searchie/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Parent_Condition.php:28
    • > PHP Notice
      Undefined variable: plural in wp-content/plugins/searchie/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 32
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/searchie/vendor/htmlburger/carbon-fields/core/Container/User_Meta_Container.php:9
    • > PHP Notice
      Undefined variable: files in wp-content/plugins/searchie/admin/partials/dashboard/part/files.php on line 2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/searchie/vendor/htmlburger/carbon-fields/templates/Container/user_meta.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/searchie/vendor/htmlburger/carbon-fields/core/Field/Sidebar_Field.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Container\\Fulfillable\\Fulfillable' not found in wp-content/plugins/searchie/vendor/htmlburger/carbon-fields/core/Container/Condition/Condition.php:11
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/searchie/admin/partials/dashboard/media/preview-modal.php on line 16
    • > PHP Notice
      Undefined variable: url_links in wp-content/plugins/searchie/admin/partials/dashboard/pagination.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
3 plugin tags: content, audio, video

searchie/searchie.php 92% from 13 tests

This is the main PHP file of "Searchie" version 1.17.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 238 characters long)

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
Success! There were no dangerous files found in this plugin32,824 lines of code in 510 files:
LanguageFilesBlank linesComment linesLines of code
PHP2433,5679,20213,963
JavaScript1795,2248,48913,155
CSS133501,1881,870
Sass4833401,746
PO File206107791,652
JSON400370
Markdown324068

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.20
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces22
Interfaces6
Traits0
Classes177
▷ Abstract classes137.34%
▷ Concrete classes16492.66%
▷ Final classes10.61%
Methods1,169
▷ Static methods14412.32%
▷ Public methods99384.94%
▷ Protected methods16614.20%
▷ Private methods100.86%
Functions147
▷ Named functions6544.22%
▷ Anonymous functions8255.78%
Constants34
▷ Global constants1132.35%
▷ Class constants2367.65%
▷ Public constants23100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/video-placeholder.png4.80KB2.25KB▼ 53.19%
assets/img/api-thumb.png3.35KB1.66KB▼ 50.41%
assets/img/searchie-symbol.png0.47KB0.34KB▼ 27.57%