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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.24MB] [CPU: ▼0.40ms] Passed 4 tests
A check of server-side resources used by Search with Azure
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 39.37 ▼1.04 |
Dashboard /wp-admin | 3.57 ▲0.27 | 48.70 ▲2.74 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 50.98 ▲4.70 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 83.51 ▼7.98 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 38.18 ▲7.66 |
Search with Azure /wp-admin/options-general.php?page=azure-search-setting-admin | 3.37 | 35.20 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_azure_search_box_widget |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Search with Azure: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲170 | 14.34 ▲0.05 | 7.32 ▲5.52 | 38.73 ▼2.86 |
Dashboard /wp-admin | 2,217 ▲29 | 4.90 ▲0.02 | 111.85 ▲8.03 | 40.86 ▼3.97 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.03 ▲0.00 | 37.81 ▼1.93 | 32.93 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,524 ▼10 | 17.75 ▼5.24 | 661.71 ▼11.13 | 68.15 ▲10.18 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.17 ▼0.02 | 96.39 ▲1.57 | 43.57 ▲2.16 |
Search with Azure /wp-admin/options-general.php?page=azure-search-setting-admin | 843 | 2.04 | 23.88 | 26.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_azure_search_box_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=azure-search-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=azure-search-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/search-with-azure/admin/partials/azure-search-admin-display.php
- > /wp-content/plugins/search-with-azure/public/partials/azure-search-public-display.php
- 1× 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/search-with-azure/widgets/azure-search-box-widget.php:5
- > PHP Fatal error
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 errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== search-with-azure ===
)
search-with-azure/search-with-azure.php Passed 13 tests
The main file in "Search with Azure" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
113 characters long description:
Use the power of the Microsoft Cloud to reduce load on your server and have a faster and more intelligent search.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin7,131 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 818 | 415 | 6,144 |
PHP | 16 | 275 | 547 | 899 |
CSS | 3 | 15 | 7 | 88 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 3.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 7 | 8.75% |
▷ Public methods | 67 | 83.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 16.25% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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.42MB with 0.26MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 155.87KB | 50.60KB | ▼ 67.54% |
assets/screenshot-3.png | 164.54KB | 63.24KB | ▼ 61.56% |
assets/screenshot-1.png | 108.13KB | 42.94KB | ▼ 60.29% |