Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/sphinx-search-related-omnibus/lib/sphinxapi.php+359
Methods with the same name as their class will not be constructors in a future version of PHP; SphinxClient has a deprecated constructor
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.73ms] Passed 4 tests
Server-side resources used by Sphinx Search & Related Omnibus
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.05 ▲0.25 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.49 ▲0.18 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.79 ▼1.77 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.73 ▼27.37 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 29.62 ▼5.96 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
aqsm_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Sphinx Search & Related Omnibus
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 14.48 ▲0.11 | 1.74 ▼0.11 | 40.25 ▼0.98 |
Dashboard /wp-admin | 2,209 ▲17 | 4.86 ▼0.10 | 110.48 ▲1.23 | 37.23 ▼2.76 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.02 | 39.30 ▲2.78 | 35.41 ▲5.37 |
Add New Post /wp-admin/post-new.php | 1,534 ▲5 | 23.34 ▲5.00 | 662.02 ▼18.07 | 50.84 ▼26.16 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▲0.02 | 96.82 ▼16.78 | 39.93 ▼8.72 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- aqsm_version
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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
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
4 plugin tags: sphinx, index, related, search
sphinx-search-related-omnibus/sphinx-omnibus.php 85% from 13 tests
The main PHP file in "Sphinx Search & Related Omnibus" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sphinx-search-related-omnibus.php" instead of "sphinx-omnibus.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,704 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 743 | 446 | 2,688 |
JavaScript | 1 | 2 | 1 | 16 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 56.83 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 112 | |
▷ Static methods | 4 | 3.57% |
▷ Public methods | 101 | 90.18% |
▷ Protected methods | 9 | 8.04% |
▷ Private methods | 2 | 1.79% |
Functions | 32 | |
▷ Named functions | 28 | 87.50% |
▷ Anonymous functions | 4 | 12.50% |
Constants | 60 | |
▷ Global constants | 58 | 96.67% |
▷ Class constants | 2 | 3.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected