Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.81ms] Passed 4 tests
An overview of server-side resources used by Search Products PRO
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.04 ▼5.64 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.47 ▼6.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.05 ▼1.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.47 ▼9.26 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 30.52 ▼2.31 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Search Products PRO: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.19 ▼1.21 | 1.81 ▼0.17 | 40.61 ▲0.90 |
Dashboard /wp-admin | 2,206 ▲21 | 5.78 ▲0.86 | 96.13 ▼8.38 | 36.85 ▼1.65 |
Posts /wp-admin/edit.php | 2,086 ▲18 | 1.99 ▼0.02 | 34.48 ▼0.72 | 35.07 ▲2.74 |
Add New Post /wp-admin/post-new.php | 1,533 ▼10 | 23.11 ▲0.25 | 642.48 ▲1.34 | 53.61 ▼5.87 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.19 ▲0.04 | 94.75 ▼5.55 | 43.45 ▼0.88 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/search-products-pro/includes/integrations/elementor.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: ajax, search, products, pro, woocommerce...
search-products-pro/search-products.php 77% from 13 tests
The principal PHP file in "Search Products PRO" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("search-products-pro.php" instead of "search-products.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "4.5")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,024 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 676 | 4 | 2,236 |
PHP | 8 | 427 | 72 | 1,722 |
SVG | 3 | 0 | 1 | 61 |
CSS | 4 | 0 | 0 | 4 |
XML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 107)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 45.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 190.00 |
Average method complexity | 4.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 107.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 81 | |
▷ Static methods | 11 | 13.58% |
▷ Public methods | 74 | 91.36% |
▷ Protected methods | 2 | 2.47% |
▷ Private methods | 5 | 6.17% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/settings/images/srchpro.png | 9.76KB | 4.69KB | ▼ 51.95% |
includes/settings/images/nc-on.png | 7.86KB | 2.56KB | ▼ 67.45% |
includes/settings/images/nc-off.png | 7.05KB | 2.32KB | ▼ 67.05% |