Benchmarks
Plugin footprint 65% 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.67MB] [CPU: ▼18.92ms] Passed 4 tests
Server-side resources used by Search Cloud One
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 32.98 ▼11.12 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.45 ▼1.77 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.94 ▼3.32 |
Add New Post /wp-admin/post-new.php | 3.14 ▼2.75 | 32.14 ▼59.45 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.81 ▲4.64 |
Categories /wp-admin/admin.php?page=SearchCloudOne/Categories.php | 3.24 | 30.25 |
New Shortcode /wp-admin/admin.php?page=SearchCloudOne/NewShortcode.php | 3.19 | 28.29 |
Quick Start /wp-admin/admin.php?page=SearchCloudOne/Quickstart.php | 3.19 | 31.96 |
Shortcodes /wp-admin/admin.php?page=SearchCloudOne/Shortcodes.php | 3.19 | 27.78 |
New Category /wp-admin/admin.php?page=SearchCloudOne/NewCategory.php | 3.19 | 29.33 |
Server storage [IO: ▲0.31MB] [DB: ▲0.08MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 44 new files
Database: 6 new tables, 6 new options
New tables |
---|
wp_sc1categories |
wp_sc1searchpages |
wp_sc1categoryindexes |
wp_sc1categoryfacets |
wp_sc1searchpagecategories |
wp_sc1debugsettings |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Search Cloud One: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,985 ▲228 | 13.61 ▼0.77 | 4.86 ▲2.72 | 41.06 ▼4.55 |
Dashboard /wp-admin | 2,266 ▲78 | 4.87 ▼0.01 | 108.32 ▼5.56 | 38.64 ▼0.07 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.06 ▲0.06 | 41.09 ▼0.79 | 35.00 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,546 ▲10 | 23.21 ▲0.13 | 577.34 ▼67.54 | 56.37 ▼0.91 |
Media Library /wp-admin/upload.php | 1,446 ▲55 | 4.16 ▼0.04 | 93.17 ▼3.63 | 42.01 ▼1.39 |
Categories /wp-admin/admin.php?page=SearchCloudOne/Categories.php | 740 | 1.14 | 8.21 | 20.87 |
New Shortcode /wp-admin/admin.php?page=SearchCloudOne/NewShortcode.php | 740 | 1.53 | 6.41 | 21.88 |
Quick Start /wp-admin/admin.php?page=SearchCloudOne/Quickstart.php | 740 | 1.14 | 6.65 | 20.28 |
Shortcodes /wp-admin/admin.php?page=SearchCloudOne/Shortcodes.php | 740 | 1.53 | 6.36 | 23.57 |
New Category /wp-admin/admin.php?page=SearchCloudOne/NewCategory.php | 740 | 1.14 | 6.46 | 24.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 tables in the database
- wp_sc1categoryfacets
- wp_sc1categories
- wp_sc1searchpages
- wp_sc1searchpagecategories
- wp_sc1debugsettings
- wp_sc1categoryindexes
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/search-cloud-one/public/partials/sc1-search-public-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/search-cloud-one/public/hitViewer_styler.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function rest_url() in wp-content/plugins/search-cloud-one/public/js/file-download.js.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: search, documents
search-cloud-one/sc1-search.php 85% from 13 tests
Analyzing the main PHP file in "Search Cloud One" version 2.2.5
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("search-cloud-one.php" instead of "sc1-search.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
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
Success! There were no dangerous files found in this plugin3,749 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 425 | 800 | 3,211 |
CSS | 4 | 103 | 6 | 443 |
JavaScript | 5 | 26 | 61 | 95 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 36 | |
▷ Named functions | 35 | 97.22% |
▷ Anonymous functions | 1 | 2.78% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/filters-display.png | 6.40KB | 3.90KB | ▼ 39.07% |
admin/img/rendered-page.png | 10.83KB | 6.16KB | ▼ 43.11% |
admin/img/category-dropdown.png | 3.95KB | 2.76KB | ▼ 30.23% |
admin/img/facets-list.png | 41.27KB | 9.00KB | ▼ 78.20% |
admin/img/pasting-shortcode.png | 12.85KB | 6.92KB | ▼ 46.18% |