78% wp-full-screen-search

Code Review | WP Full Screen Search

WordPress plugin WP Full Screen Search scored 78% from 54 tests.

About plugin

  • Plugin page: wp-full-screen-se...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 15, 2020
  • Latest release: Jul 10, 2021
  • Number of updates: 4
  • Update frequency: every 82.3 days
  • Top authors: mayankmajeji (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,095 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by WP Full Screen Search
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0548.90 ▲3.54
Dashboard /wp-admin3.33 ▲0.0352.83 ▼0.51
Posts /wp-admin/edit.php3.38 ▲0.0354.67 ▲0.57
Add New Post /wp-admin/post-new.php5.93 ▲0.05104.85 ▲13.42
Media Library /wp-admin/upload.php3.25 ▲0.0339.45 ▲1.45
WP Full Screen Search /wp-admin/options-general.php?page=wp-full-screen-search3.3044.43

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP Full Screen Search
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,976 ▲18713.98 ▲0.366.70 ▲4.7363.87 ▲18.04
Dashboard /wp-admin2,253 ▲475.28 ▼0.57112.66 ▲1.5139.90 ▼3.01
Posts /wp-admin/edit.php2,140 ▲512.40 ▲0.3747.06 ▲7.6841.44 ▲2.97
Add New Post /wp-admin/post-new.php1,391 ▼14317.74 ▼5.31786.02 ▲24.1327.74 ▼26.28
Media Library /wp-admin/upload.php1,438 ▲474.51 ▲0.29100.00 ▼3.5942.31 ▼1.49
WP Full Screen Search /wp-admin/options-general.php?page=wp-full-screen-search1,8132.6286.9834.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-full-screen-search/admin/settings.php:6
    • > PHP Warning
      Use of undefined constant WPFSS_PLUGIN_URI - assumed 'WPFSS_PLUGIN_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-full-screen-search/admin/settings.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-full-screen-search/admin/sidebar.php:9
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-full-screen-search/admin/dashboard-notices.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-full-screen-search
    • > 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.
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-full-screen-search
    • > 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.
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-full-screen-search
    • > 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.
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-full-screen-search
    • > 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 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: search, search form, ajax search, custom search, wordpress search

wp-full-screen-search/wp-full-screen-search.php 85% from 13 tests

The main file in "WP Full Screen Search" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

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 plugin657 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP451105407
CSS226231
JavaScript372219

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.11
▷ 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%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/wp-full-screen-search-wordpress-plugin-thememantis.png6.19KB3.78KB▼ 38.88%