84% full-screen-search-overlay

Code Review | WordPress Full Screen Search Overlay

WordPress plugin WordPress Full Screen Search Overlay scored84%from 54 tests.

About plugin

  • Plugin page: full-screen-searc...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4.1
  • WordPress version: 6.3.1
  • First release: Feb 8, 2016
  • Latest release: Feb 18, 2016
  • Number of updates: 7
  • Update frequency: every 1.4 days
  • Top authors: smub (71.43%)n7studios (42.86%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /9,704 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.26ms] Passed 4 tests

Server-side resources used by WordPress Full Screen Search Overlay
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.18 ▲0.61
Dashboard /wp-admin3.31 ▲0.0153.02 ▼1.60
Posts /wp-admin/edit.php3.37 ▲0.0155.68 ▲3.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.27 ▼0.60
Media Library /wp-admin/upload.php3.24 ▲0.0139.07 ▲0.56

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Full Screen Search Overlay
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲17913.73 ▼0.6314.01 ▲12.4851.06 ▲8.60
Dashboard /wp-admin2,192 ▲125.52 ▼0.1487.83 ▼5.1537.49 ▼4.44
Posts /wp-admin/edit.php2,097 ▼61.99 ▲0.0239.39 ▼1.1535.91 ▼0.42
Add New Post /wp-admin/post-new.php1,528 ▲223.27 ▲0.14633.20 ▼30.9075.00 ▲26.18
Media Library /wp-admin/upload.php1,397 ▼34.21 ▲0.03105.80 ▲10.3842.18 ▼2.46

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% 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 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/full-screen-search-overlay/full-screen-search.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: search overlay, full screen search, wordpress search, search

full-screen-search-overlay/full-screen-search.php 92% from 13 tests

The principal PHP file in "WordPress Full Screen Search Overlay" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("full-screen-search-overlay.php" instead of "full-screen-search.php")

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
There were no executable files found in this plugin151 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1833108
PHP1164432
JavaScript161011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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
PNG images were not found in this plugin