84% omnibus

Code Review | Omnibus — show the lowest price

WordPress plugin Omnibus — show the lowest price scored84%from 54 tests.

About plugin

  • Plugin page: omnibus
  • Plugin version: 2.5.0
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 29, 2022
  • Latest release: Nov 19, 2023
  • Number of updates: 75
  • Update frequency: every 4.3 days
  • Top authors: iworks (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

8,000+ active /32,772 total downloads

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.08ms] Passed 4 tests

Server-side resources used by Omnibus — show the lowest price
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0940.74 ▲5.29
Dashboard /wp-admin3.39 ▲0.0445.97 ▼17.32
Posts /wp-admin/edit.php3.50 ▲0.1447.95 ▼0.23
Add New Post /wp-admin/post-new.php5.97 ▲0.0893.89 ▲1.89
Media Library /wp-admin/upload.php3.31 ▲0.0833.72 ▼4.64

Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Omnibus — show the lowest price
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6414.57 ▼0.141.92 ▲0.2244.02 ▲4.63
Dashboard /wp-admin2,192 ▲185.64 ▲0.0791.50 ▼4.9441.15 ▲1.38
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0139.10 ▲0.1435.71 ▲1.14
Add New Post /wp-admin/post-new.php1,526 ▼022.84 ▼0.21617.06 ▼101.8454.27 ▼3.32
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.0197.10 ▼2.2344.67 ▲1.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% 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 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/omnibus/assets/templates/woocommerce-version.php:7

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add descriptions for screenshots #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in omnibus/assets to your readme.txt
Please take inspiration from this readme.txt

omnibus/omnibus.php 92% from 13 tests

"Omnibus — show the lowest price" version 2.5.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,957 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP152291,1262,622
Sass180138
CSS151101
JavaScript51790
SVG2106

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity38.56
▷ Minimum class complexity1.00
▷ Maximum class complexity154.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods132
▷ Static methods10.76%
▷ Public methods8362.88%
▷ Protected methods2317.42%
▷ Private methods2619.70%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin