73% easy-full-screen-search-form

Code Review | Easy Full Screen Search

WordPress plugin Easy Full Screen Search scored73%from 54 tests.

About plugin

  • Plugin page: easy-full-screen-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: Apr 18, 2020
  • Latest release: Mar 20, 2021
  • Number of updates: 8
  • Update frequency: every 42.0 days
  • Top authors: apsaraaruna (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /1,158 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼7.50ms] Passed 4 tests

Server-side resources used by Easy Full Screen Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0724.65 ▼15.43
Dashboard /wp-admin3.41 ▲0.1048.67 ▼2.57
Posts /wp-admin/edit.php3.52 ▲0.1752.17 ▲9.50
Add New Post /wp-admin/post-new.php6.01 ▲0.1284.34 ▼14.61
Media Library /wp-admin/upload.php3.33 ▲0.1038.29 ▲2.62
Easy Search /wp-admin/options-general.php?page=easy_search_options3.2732.81

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
efssf_about_options
db_upgraded
efssf_display_options

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Full Screen Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲19213.87 ▼0.515.12 ▲3.1937.56 ▼6.87
Dashboard /wp-admin2,233 ▲455.16 ▼0.74106.88 ▼7.7840.97 ▼2.00
Posts /wp-admin/edit.php2,121 ▲292.34 ▲0.3042.20 ▼1.9434.99 ▼3.70
Add New Post /wp-admin/post-new.php1,535 ▼723.22 ▲4.63683.77 ▲58.5636.75 ▼18.85
Media Library /wp-admin/upload.php1,415 ▲304.46 ▲0.2698.16 ▼0.2943.52 ▲2.22
Easy Search /wp-admin/options-general.php?page=easy_search_options1,2452.7765.8229.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • efssf_about_options
    • theysaidso_admin_options
    • efssf_display_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=easy_search_options
    • > Notice in wp-content/plugins/easy-full-screen-search-form/admin/class-easy-full-screen-search-settings.php+223
    Undefined index: search_wrapper_bg
    • > GET request to /wp-admin/options-general.php?page=easy_search_options
    • > Notice in wp-content/plugins/easy-full-screen-search-form/admin/class-easy-full-screen-search-settings.php+234
    Undefined index: efssf_input
    • > GET request to /wp-admin/options-general.php?page=easy_search_options
    • > Notice in wp-content/plugins/easy-full-screen-search-form/admin/class-easy-full-screen-search-settings.php+243
    Undefined index: efssf_btn_text
    • > GET request to /wp-admin/options-general.php?page=easy_search_options
    • > Notice in wp-content/plugins/easy-full-screen-search-form/admin/class-easy-full-screen-search-settings.php+245
    Undefined index: efssf_btn_color
    • > GET request to /wp-admin/options-general.php?page=easy_search_options
    • > Notice in wp-content/plugins/easy-full-screen-search-form/admin/class-easy-full-screen-search-settings.php+246
    Undefined index: efssf_btn_padding_y
    • > GET request to /wp-admin/options-general.php?page=easy_search_options
    • > Notice in wp-content/plugins/easy-full-screen-search-form/admin/class-easy-full-screen-search-settings.php+246
    Undefined index: efssf_btn_padding_x
    • > GET request to /wp-admin/options-general.php?page=easy_search_options
    • > Notice in wp-content/plugins/easy-full-screen-search-form/admin/class-easy-full-screen-search-settings.php+257
    Undefined index: efssf_close_btn_color

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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-full-screen-search-form/admin/partials/easy-full-screen-search-admin-display.php
    • > /wp-content/plugins/easy-full-screen-search-form/public/partials/easy-full-screen-search-public-display.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=easy_search_options
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=easy_search_options
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=easy_search_options
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultString is deprecated since version 5.5.0! Use wp.i18n instead.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=easy_search_options
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: ajax search, search, wordpress search, custom search, search form

easy-full-screen-search-form/easy-full-screen-search-form.php Passed 13 tests

Analyzing the main PHP file in "Easy Full Screen Search" version 1.0.1
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected735 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP13201571424
JavaScript468131172
CSS31711107
Markdown19032

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods40
▷ Static methods25.00%
▷ Public methods3485.00%
▷ Protected methods00.00%
▷ Private methods615.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin