90% categorized-cart-page-for-woocommerce

Code Review | Categorized Cart Page For Woocommerce

WordPress plugin Categorized Cart Page For Woocommerce scored90%from 54 tests.

About plugin

  • Plugin page: categorized-cart-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.8
  • WordPress version: 6.3.1
  • First release: Nov 15, 2019
  • Latest release: Jul 10, 2021
  • Number of updates: 3
  • Update frequency: every 201.3 days
  • Top authors: linekal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /596 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 gracefully, with no errors

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

Server-side resources used by Categorized Cart Page For Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.68 ▼5.65
Dashboard /wp-admin3.31 ▼0.0440.64 ▼22.36
Posts /wp-admin/edit.php3.36 ▲0.0046.86 ▲1.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.42 ▼26.56
Media Library /wp-admin/upload.php3.23 ▲0.0030.49 ▼3.06

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Categorized Cart Page For Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.22 ▼1.211.58 ▼0.4436.21 ▼8.60
Dashboard /wp-admin2,206 ▲184.84 ▼0.03113.30 ▼0.0742.29 ▼1.69
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0132.54 ▼4.0532.20 ▼1.77
Add New Post /wp-admin/post-new.php1,533 ▲1423.15 ▼0.22633.20 ▼7.1248.86 ▼6.01
Media Library /wp-admin/upload.php1,379 ▼94.18 ▲0.0199.09 ▲2.6546.54 ▲3.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

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 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
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
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: woocommerce, woocommerce cart

categorized-cart-page-for-woocommerce/categorized-cart-page-for-woocommerce.php Passed 13 tests

The main PHP script in "Categorized Cart Page For Woocommerce" version 1.0 is automatically included on every request by WordPress
51 characters long description:
Display products on cart page in categorized format

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
Everything looks great! No dangerous files found in this plugin165 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23315165

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.30
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin