89% ovic-product-bundle

Code Review | Ovic Product Bundle

WordPress plugin Ovic Product Bundle scored89%from 54 tests.

About plugin

  • Plugin page: ovic-product-bundle
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7
  • WordPress version: 6.3.1
  • First release: Nov 14, 2018
  • Latest release: Jul 12, 2022
  • Number of updates: 53
  • Update frequency: every 25.2 days
  • Top authors: hoangkhanh92 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

4,000+ active /49,350 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.23ms] Passed 4 tests

This is a short check of server-side resources used by Ovic Product Bundle
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.89 ▼4.75
Dashboard /wp-admin3.31 ▼0.0344.81 ▼16.04
Posts /wp-admin/edit.php3.37 ▲0.0145.65 ▲2.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0176.09 ▼20.10
Media Library /wp-admin/upload.php3.24 ▲0.0132.58 ▼0.04

Server storage [IO: ▲0.15MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Ovic Product Bundle
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.24 ▼0.111.63 ▲0.0841.33 ▲3.43
Dashboard /wp-admin2,215 ▲385.55 ▼0.0983.05 ▼6.4387.07 ▲40.53
Posts /wp-admin/edit.php2,121 ▲181.99 ▼0.0241.98 ▲5.2633.88 ▲1.57
Add New Post /wp-admin/post-new.php1,565 ▲3618.17 ▼5.18694.29 ▲52.3749.63 ▼18.82
Media Library /wp-admin/upload.php1,417 ▲174.18 ▼0.0697.28 ▲1.6568.21 ▲24.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

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, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Please fix the following attributes: You can look at the official readme.txt

ovic-product-bundle/addon.php 77% from 13 tests

The main PHP script in "Ovic Product Bundle" version 1.1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("ovic-product-bundle.php" instead of "addon.php")

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
Success! There were no dangerous files found in this plugin2,502 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP599761,494
JavaScript5160224719
CSS3561289

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity42.80
▷ Minimum class complexity9.00
▷ Maximum class complexity139.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods59
▷ Static methods23.39%
▷ Public methods59100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon-menu.png1.11KB0.37KB▼ 66.43%