84% woo-racoon

Code Review | WooCommerce Racoon

WordPress plugin WooCommerce Racoon scored84%from 54 tests.

About plugin

  • Plugin page: woo-racoon
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 30, 2017
  • Latest release: Nov 29, 2022
  • Number of updates: 14
  • Update frequency: every 145.6 days
  • Top authors: sepplind (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /842 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Server-side resources used by WooCommerce Racoon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0138.31 ▲2.59
Dashboard /wp-admin3.31 ▲0.0042.90 ▼4.83
Posts /wp-admin/edit.php3.36 ▲0.0045.99 ▲2.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.42 ▼2.62
Media Library /wp-admin/upload.php3.23 ▲0.0036.63 ▲3.44

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Racoon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.73 ▼1.031.67 ▼0.5343.82 ▼6.60
Dashboard /wp-admin2,212 ▲215.80 ▲0.9495.36 ▼5.7742.60 ▲1.98
Posts /wp-admin/edit.php2,095 ▲62.01 ▼0.0339.27 ▲2.1337.56 ▲5.45
Add New Post /wp-admin/post-new.php1,539 ▲323.42 ▲0.27636.82 ▲2.2953.83 ▲5.02
Media Library /wp-admin/upload.php1,388 ▼34.30 ▲0.0994.86 ▼4.0541.35 ▼1.11

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/woo-racoon/uninstall.php:10

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: ecommerce, racoon, woocommerce config, woocommerce

woo-racoon/woocommerce-racoon.php 85% from 13 tests

The main PHP script in "WooCommerce Racoon" version 1.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "3.6.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-racoon.php" instead of "woocommerce-racoon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected782 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10209310505
PO File16060185
Markdown133057
CSS15035

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected