84% roven-omnibus

Code Review | Roven Omnibus — display lowest price

WordPress plugin Roven Omnibus — display lowest price scored84%from 54 tests.

About plugin

  • Plugin page: roven-omnibus
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jul 17, 2023
  • Latest release: Jul 17, 2023
  • Number of updates: 7
  • Update frequency: every 6.6 days
  • Top authors: roventhemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /258 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Roven Omnibus — display lowest price
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.18 ▼1.53
Dashboard /wp-admin3.38 ▲0.0743.68 ▼5.39
Posts /wp-admin/edit.php3.49 ▲0.1345.05 ▼5.45
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.20 ▼13.62
Media Library /wp-admin/upload.php3.30 ▲0.0740.00 ▲7.99

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 21 new files
Database: 1 new table, 6 new options
New tables
wp_rt_price_history
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Roven Omnibus — display lowest price
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.26 ▼1.121.77 ▲0.0441.23 ▲0.36
Dashboard /wp-admin2,206 ▲214.84 ▼1.01107.64 ▲9.9838.57 ▼3.88
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0438.49 ▲1.4737.09 ▲3.38
Add New Post /wp-admin/post-new.php1,514 ▼517.63 ▼5.56667.68 ▲8.1154.95 ▲3.86
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0194.71 ▼5.7640.65 ▼4.29

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'RovenOmnibus\\WooCommerce\\Settings\\HookList' not found in wp-content/plugins/roven-omnibus/includes/WooCommerce/Products/Product.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: woocommerce, history, product, omnibus, shop...

roven-omnibus/roven-omnibus.php Passed 13 tests

"Roven Omnibus — display lowest price" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
13 characters long description:
Roven Omnibus

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin536 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP1723351528
JavaScript1005
CSS1003

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 complexity2.81
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.74
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces7
Interfaces1
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods39
▷ Static methods923.08%
▷ Public methods3692.31%
▷ Protected methods12.56%
▷ Private methods25.13%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.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
There are no PNG files in this plugin