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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▼3.45ms] Passed 4 tests
Analyzing server-side resources used by Woo Metaphone Product Search
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 42.18 ▲3.34 |
Dashboard /wp-admin | 3.52 ▲0.21 | 50.28 ▲0.11 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 53.06 ▲0.87 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 89.75 ▼18.13 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 45.49 ▲8.44 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_gc_doublemetaphone |
New WordPress options |
---|
gc_ajax_search_for_wpbox |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
gc_num_chars |
widget_theysaidso_widget |
gc_num_results |
db_upgraded |
gc_display_black_shadow |
gc_load_datatable |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Woo Metaphone Product Search
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲148 | 14.01 ▼0.72 | 10.29 ▲8.66 | 39.18 ▼2.61 |
Dashboard /wp-admin | 2,221 ▲41 | 5.84 ▲0.20 | 105.87 ▲17.20 | 36.67 ▼9.08 |
Posts /wp-admin/edit.php | 2,126 ▲23 | 2.30 ▲0.29 | 41.70 ▲5.47 | 36.83 ▲1.55 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 23.36 ▲0.19 | 609.84 ▼90.46 | 49.15 ▼0.63 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.47 ▲0.27 | 97.33 ▼20.18 | 44.53 ▼2.80 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-metaphone-product-search/gc_doublemetaphone.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (`/assets/searchresult.png`), #2 (`/assets/adminscreen.png`)
woo-metaphone-product-search/gc_doublemetaphone.php 69% from 13 tests
The primary PHP file in "Woo Metaphone Product Search" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 317 characters long)
- Domain Path: The domain path points to a folder that does not exist ("/search")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("woo-metaphone-product-search.php" instead of "gc_doublemetaphone.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,926 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 191 | 240 | 1,278 |
CSS | 3 | 5 | 52 | 404 |
JavaScript | 2 | 10 | 9 | 244 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 6 | 42.86% |
▷ Public methods | 10 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 28.57% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/more.png | 0.46KB | 0.64KB | 0.00% |
images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
images/close.png | 0.46KB | 0.63KB | 0.00% |
images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |