10% brozzme-product-navigation

Code Review | Brozzme Product Navigation

WordPress plugin Brozzme Product Navigation scored10%from 54 tests.

About plugin

  • Plugin page: brozzme-product-n...
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-5.8
  • WordPress version: 6.3.1
  • First release: Jun 9, 2016
  • Latest release: Oct 28, 2021
  • Number of updates: 117
  • Update frequency: every 16.8 days
  • Top authors: Benoti (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /3,460 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/brozzme-product-navigation/wc_brozzme_product_navigation.php+92
    include_once(wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-page.php): failed to open stream: No such file or directory

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

A check of server-side resources used by Brozzme Product Navigation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.74 ▼0.54
Dashboard /wp-admin3.31 ▲0.0050.74 ▲8.12
Posts /wp-admin/edit.php3.36 ▲0.0044.26 ▼6.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.71 ▼11.67
Media Library /wp-admin/upload.php3.23 ▲0.0033.40 ▲1.23

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Brozzme Product Navigation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.171.63 ▼0.4142.60 ▲0.61
Dashboard /wp-admin2,206 ▲184.85 ▼0.25111.25 ▼4.1643.58 ▼2.62
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0135.01 ▼5.4733.41 ▼4.81
Add New Post /wp-admin/post-new.php1,534 ▲123.09 ▼0.10629.15 ▼90.9250.24 ▼1.85
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0195.14 ▲1.9639.00 ▼2.30

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/brozzme-product-navigation/wc_brozzme_product_navigation.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/brozzme-product-navigation/includes/brozzme_product_navigation_widget_class.php:9

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 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can look at the official readme.txt

brozzme-product-navigation/wc_brozzme_product_navigation.php 85% from 13 tests

"Brozzme Product Navigation" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("brozzme-product-navigation.php" instead of "wc_brozzme_product_navigation.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("4.5" instead of "2.3")

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
There were no executable files found in this plugin3,464 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS313232,284
SVG100685
PHP4141131490
JavaScript1345

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.75
▷ Minimum class complexity3.00
▷ Maximum class complexity33.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/arrow-right.png0.62KB0.50KB▼ 19.75%
css/images/arrow-left.png0.63KB0.52KB▼ 18.06%