84% c4d-woo-cart-icon

Code Review | C4D Woo Cart Popup & Slide - Boost Sell Collections

WordPress plugin C4D Woo Cart Popup & Slide - Boost Sell Collections scored84%from 54 tests.

About plugin

  • Plugin page: c4d-woo-cart-icon
  • Plugin version: 3.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Feb 19, 2017
  • Latest release: Jul 5, 2019
  • Number of updates: 32
  • Update frequency: every 27.1 days
  • Top authors: coffee4dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,612 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.63ms] Passed 4 tests

Server-side resources used by C4D Woo Cart Popup & Slide - Boost Sell Collections
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.16 ▼3.92
Dashboard /wp-admin3.39 ▲0.0847.31 ▼2.94
Posts /wp-admin/edit.php3.44 ▲0.0849.05 ▼1.62
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.53 ▼14.04
Media Library /wp-admin/upload.php3.31 ▲0.0834.61 ▼0.09

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for C4D Woo Cart Popup & Slide - Boost Sell Collections
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲14213.62 ▼0.766.15 ▲4.0637.24 ▼4.84
Dashboard /wp-admin2,206 ▲184.81 ▼0.09102.36 ▼9.1339.23 ▼5.36
Posts /wp-admin/edit.php2,089 ▼02.13 ▲0.1140.02 ▲0.3935.46 ▼3.35
Add New Post /wp-admin/post-new.php1,514 ▼2017.55 ▼5.59669.67 ▼11.5354.36 ▼11.84
Media Library /wp-admin/upload.php1,388 ▼34.26 ▲0.0693.65 ▼5.5141.77 ▼1.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/c4d-woo-cart-icon/c4d-woo-cart-icon.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% 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
Attributes that require attention:
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

c4d-woo-cart-icon/c4d-woo-cart-icon.php Passed 13 tests

"C4D Woo Cart Popup & Slide - Boost Sell Collections" version 3.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
Popup Cart, Side Cart, Sticky Add To Cart Button, Call For Price

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,225 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP28817539
Sass231481
JavaScript43430203
CSS2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin