68% olalaweb-woocommerce-category-prices

Code Review | OlalaWeb - WooCommerce Category Prices

WordPress plugin OlalaWeb - WooCommerce Category Prices scored68%from 54 tests.

About plugin

  • Plugin page: olalaweb-woocomme...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 3, 2015
  • Latest release: Jan 3, 2015
  • Number of updates: 11
  • Update frequency: every 21.6 days
  • Top authors: OlalaWeb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,285 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.45ms] Passed 4 tests

This is a short check of server-side resources used by OlalaWeb - WooCommerce Category Prices
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.01 ▼15.89
Dashboard /wp-admin3.32 ▲0.0146.34 ▼0.64
Posts /wp-admin/edit.php3.37 ▲0.0150.14 ▲0.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.45 ▼19.46
Media Library /wp-admin/upload.php3.24 ▲0.0136.25 ▼1.82

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for OlalaWeb - WooCommerce Category Prices
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.391.65 ▼1.0348.14 ▼9.16
Dashboard /wp-admin2,203 ▲215.83 ▲0.96124.96 ▲12.0045.17 ▲0.04
Posts /wp-admin/edit.php2,086 ▼02.06 ▼0.0038.61 ▲0.1732.68 ▼2.92
Add New Post /wp-admin/post-new.php1,536 ▲822.96 ▼0.11660.81 ▲42.2982.18 ▲15.04
Media Library /wp-admin/upload.php1,385 ▼04.25 ▲0.03100.97 ▼16.2342.28 ▼6.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Error in wp-content/plugins/olalaweb-woocommerce-category-prices/uninstall.php+11
    Uncaught Error: Call to undefined function delete_woocommerce_term_meta() in wp-content/plugins/olalaweb-woocommerce-category-prices/uninstall.php:11
    Stack trace:
    #0 wp-admin/includes/plugin.php(1245): include_once()
    #1 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • Incomplete uninstall procedure, leaving 5 files (0.01MB) in the plugin directory
    • (new file) readme.txt
    • (new file) uninstall.php
    • (new file) lang/.empty
    • (new file) ola-wccp.php
    • (new file) index.html
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • recovery_mode_email_last_sent
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

olalaweb-woocommerce-category-prices/ola-wccp.php 69% from 13 tests

This is the main PHP file of "OlalaWeb - WooCommerce Category Prices" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages/")
  • 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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("olalaweb-woocommerce-category-prices.php" instead of "ola-wccp.php")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin102 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22046102
HTML1040

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.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin