84% full-screen-morphing-search

Code Review | Full Screen Morphing Search

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

About plugin

  • Plugin page: full-screen-morph...
  • Plugin version: 3.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-5.6
  • WordPress version: 6.3.1
  • First release: Nov 16, 2016
  • Latest release: Jan 9, 2021
  • Number of updates: 49
  • Update frequency: every 30.8 days
  • Top authors: lebcit (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,864 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Full Screen Morphing Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.22537.83 ▲501.35
Dashboard /wp-admin3.41 ▲0.0745.44 ▼15.51
Posts /wp-admin/edit.php3.46 ▲0.1156.80 ▲5.41
Add New Post /wp-admin/post-new.php5.99 ▲0.1188.92 ▼14.54
Media Library /wp-admin/upload.php3.34 ▲0.1135.54 ▲2.75

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Full Screen Morphing Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,997 ▲26213.91 ▼0.499.16 ▲7.4266.31 ▲26.99
Dashboard /wp-admin2,206 ▲155.82 ▼0.0793.93 ▼18.1938.54 ▼5.38
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0440.92 ▼7.6336.38 ▲2.04
Add New Post /wp-admin/post-new.php1,533 ▼023.37 ▲0.10602.97 ▲0.6256.82 ▲6.43
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0497.00 ▼2.2841.85 ▼3.49

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/full-screen-morphing-search/functions-full-screen-morphing-search.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/full-screen-morphing-search/class-full-screen-morphing-search.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/full-screen-morphing-search/class-full-screen-morphing-search.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: morphing search, full screen search, autocomplete, search, search overlay

full-screen-morphing-search/full-screen-morphing-search.php Passed 13 tests

The entry point to "Full Screen Morphing Search" version 3.5 is a PHP file that has certain tags in its header comment area
76 characters long description:
Effect for any WordPress search input that morphs into a fullscreen overlay.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,603 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP385176769
CSS17621450
JavaScript35174225
Markdown1560151
SVG1008

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity11.33
▷ Minimum method complexity2.00
▷ Maximum method complexity19.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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
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/category.png2.18KB1.62KB▼ 25.80%
assets/img/article.png1.90KB1.49KB▼ 21.67%
assets/img/tag.png1.77KB1.21KB▼ 31.92%