10% sphinx-search-related-omnibus

Code Review | Sphinx Search & Related Omnibus

WordPress plugin Sphinx Search & Related Omnibus scored 10% from 54 tests.

About plugin

  • Plugin page: sphinx-search-rel...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 13, 2015
  • Latest release: Jul 13, 2015
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: kasigi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 885 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.05 ▲0.25
Dashboard /wp-admin3.31 ▲0.0047.49 ▲0.18
Posts /wp-admin/edit.php3.36 ▲0.0045.79 ▼1.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.73 ▼27.37
Media Library /wp-admin/upload.php3.23 ▲0.0029.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.48 ▲0.111.74 ▼0.1140.25 ▼0.98
Dashboard /wp-admin2,209 ▲174.86 ▼0.10110.48 ▲1.2337.23 ▼2.76
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0239.30 ▲2.7835.41 ▲5.37
Add New Post /wp-admin/post-new.php1,534 ▲523.34 ▲5.00662.02 ▼18.0750.84 ▼26.16
Media Library /wp-admin/upload.php1,391 ▲34.20 ▲0.0296.82 ▼16.7839.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:
LanguageFilesBlank linesComment linesLines of code
PHP107434462,688
JavaScript12116

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 code0.32
Average class complexity56.83
▷ Minimum class complexity19.00
▷ Maximum class complexity153.00
Average method complexity4.06
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods112
▷ Static methods43.57%
▷ Public methods10190.18%
▷ Protected methods98.04%
▷ Private methods21.79%
Functions32
▷ Named functions2887.50%
▷ Anonymous functions412.50%
Constants60
▷ Global constants5896.67%
▷ Class constants23.33%
▷ Public constants2100.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