100% woo-mega-search

Code Review | WooCommerce Mega Search

WordPress plugin WooCommerce Mega Search scored 100% from 54 tests.

About plugin

  • Plugin page: woo-mega-search
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Dec 5, 2018
  • Latest release: Feb 28, 2019
  • Number of updates: 11
  • Update frequency: every 7.8 days
  • Top authors: pluginrox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 447 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼300.62ms] Passed 4 tests

A check of server-side resources used by WooCommerce Mega Search
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0160.77 ▲3.41
Dashboard /wp-admin3.41 ▲0.0034.35 ▼4.87
Posts /wp-admin/edit.php3.64 ▲0.0039.25 ▼1.80
Add New Post /wp-admin/post-new.php6.88 ▼0.0995.44 ▼1,192.38
Media Library /wp-admin/upload.php3.29 ▲0.0023.90 ▼3.43

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 56 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Mega Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5115.83 ▼0.135.95 ▲0.152.30 ▼0.05
Dashboard /wp-admin2,889 ▲356.12 ▼0.02119.19 ▼17.53153.24 ▼65.91
Posts /wp-admin/edit.php2,688 ▼53.24 ▲0.0191.38 ▲27.63139.03 ▼3.81
Add New Post /wp-admin/post-new.php1,661 ▼2916.18 ▼4.95403.17 ▼19.88159.50 ▼15.08
Media Library /wp-admin/upload.php1,698 ▲65.52 ▲0.02159.33 ▲21.71199.54 ▼26.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No tags were found

woo-mega-search/woo-mega-search.php Passed 13 tests

The primary PHP file in "WooCommerce Mega Search" version 1.0.1 is used by WordPress to initiate all plugin functionality
36 characters long description:
WooCommerce Mega Search By PluginRox

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
No dangerous file extensions were detected13,230 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
JSON20010,477
PHP11264901,219
CSS41623517
Sass810515
SVG802249
JavaScript5458242
Ruby12911

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity22.33
▷ Minimum class complexity12.00
▷ Maximum class complexity32.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods40
▷ Static methods512.50%
▷ Public methods3382.50%
▷ Protected methods00.00%
▷ Private methods717.50%
Functions21
▷ Named functions2095.24%
▷ Anonymous functions14.76%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/search.png1.33KB0.68KB▼ 48.49%
assets/images/close.png1.11KB0.20KB▼ 81.68%
assets/images/none.png1.38KB0.48KB▼ 65.30%
assets/images/loading.png1.25KB0.41KB▼ 67.19%