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
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼10.55ms] Passed 4 tests
This is a short check of server-side resources used by Gigaom Sphinx
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▼0.48 | 16.52 ▼31.14 |
Dashboard /wp-admin | 3.69 ▲0.38 | 55.47 ▲0.57 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 48.84 ▼2.33 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 93.67 ▼6.37 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 39.23 ▼2.37 |
Sphinx /wp-admin/options-general.php?page=go-sphinx | 3.69 | 33.51 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gigaom Sphinx
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,468 ▼293 | 14.30 ▼0.03 | 0.63 ▼1.36 | 18.92 ▼28.77 |
Dashboard /wp-admin | 2,202 ▲32 | 5.62 ▲0.00 | 93.78 ▼18.69 | 43.22 ▲0.58 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.01 | 36.98 ▲1.95 | 32.78 ▼7.01 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 22.52 ▼0.31 | 660.67 ▼2.26 | 72.52 ▲7.79 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▲0.11 | 102.06 ▼5.16 | 47.67 ▲0.96 |
Sphinx /wp-admin/options-general.php?page=go-sphinx | 759 | 1.99 | 24.75 | 26.27 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/go-sphinx/components/templates/config-file.php
- 56× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: c in wp-content/plugins/go-sphinx/components/templates/config-file.php on line 55
- > PHP Notice
Trying to get property 'user' of non-object in wp-content/plugins/go-sphinx/components/templates/config-file.php on line 8
- > PHP Notice
Trying to get property 'posts_table' of non-object in wp-content/plugins/go-sphinx/components/templates/config-file.php on line 112
- > PHP Notice
Trying to get property 'user' of non-object in wp-content/plugins/go-sphinx/components/templates/config-file.php on line 71
- > PHP Notice
Undefined variable: c in wp-content/plugins/go-sphinx/components/templates/config-file.php on line 34
- > PHP Notice
Trying to get property 'name' of non-object in wp-content/plugins/go-sphinx/components/templates/config-file.php on line 57
- > PHP Notice
Undefined variable: c in wp-content/plugins/go-sphinx/components/templates/config-file.php on line 79
- > PHP Notice
Undefined variable: c in wp-content/plugins/go-sphinx/components/templates/config-file.php on line 8
- > PHP Notice
Trying to get property 'posts_table' of non-object in wp-content/plugins/go-sphinx/components/templates/config-file.php on line 48
- > PHP Notice
Trying to get property 'name' of non-object in wp-content/plugins/go-sphinx/components/templates/config-file.php on line 55
- > PHP Notice
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: performance, keyword search, wpquery, taxonomy queries, fulltext...
go-sphinx/go-sphinx.php Passed 13 tests
The main file in "Gigaom Sphinx" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
42 characters long description:
Improve WP Query performance using Sphinx.
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
No dangerous file extensions were detected3,713 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 684 | 778 | 3,677 |
JavaScript | 1 | 7 | 3 | 36 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 120.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 184.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 128 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 128 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 59 | |
▷ Global constants | 59 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin