78% tripandfly-search-widget

Code Review | Tripandfly Search Widget

WordPress plugin Tripandfly Search Widget scored78%from 54 tests.

About plugin

  • Plugin page: tripandfly-search...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2022
  • Latest release: Dec 6, 2022
  • Number of updates: 7
  • Update frequency: every 32.7 days
  • Top authors: oneliyateam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /629 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
Installer ran successfully

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

Analyzing server-side resources used by Tripandfly Search Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0445.70 ▲2.05
Dashboard /wp-admin66.35 ▲0.0113,058,753.65 ▲8,468.77
Posts /wp-admin/edit.php3.50 ▲0.1053.76 ▼3.16
Add New Post /wp-admin/post-new.php5.97 ▲0.0498.98 ▲0.43
Media Library /wp-admin/upload.php3.31 ▲0.0438.36 ▼0.44
Tripandfly Search Widget /wp-admin/options-general.php?page=tripandfly-search-widget3.2936.46

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Tripandfly Search Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6514.34 ▲0.172.03 ▲0.1038.79 ▼4.44
Dashboard /wp-admin2,199 ▲225.58 ▼0.0594.94 ▲4.5143.08 ▼2.19
Posts /wp-admin/edit.php2,101 ▼22.02 ▲0.0641.04 ▼1.8037.82 ▼1.22
Add New Post /wp-admin/post-new.php1,531 ▲523.26 ▼0.00660.89 ▼19.0454.62 ▼10.66
Media Library /wp-admin/upload.php1,401 ▲14.23 ▲0.0798.33 ▼9.1445.84 ▲1.03
Tripandfly Search Widget /wp-admin/options-general.php?page=tripandfly-search-widget8402.0026.1726.18

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tripandfly-search-widget
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tripandfly-search-widget
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 50% 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/tripandfly-search-widget/views/settings.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tripandfly-search-widget/tripandfly-search.php:47

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: search

tripandfly-search-widget/tripandfly-search.php 85% from 13 tests

"Tripandfly Search Widget" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tripandfly-search-widget.php" instead of "tripandfly-search.php")

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
There were no executable files found in this plugin247 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23745197
PO File1182150

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin