84% cartpanda

Code Review | Cartpanda

WordPress plugin Cartpanda scored84%from 54 tests.

About plugin

  • Plugin page: cartpanda
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2022
  • Latest release: Nov 9, 2023
  • Number of updates: 17
  • Update frequency: every 22.6 days
  • Top authors: cartx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,643 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.44ms] Passed 4 tests

A check of server-side resources used by Cartpanda
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.91 ▲3.94
Dashboard /wp-admin3.33 ▲0.0244.92 ▲2.10
Posts /wp-admin/edit.php3.38 ▲0.0248.50 ▼4.09
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.83 ▲1.47
Media Library /wp-admin/upload.php3.25 ▲0.0235.28 ▲2.28

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Cartpanda
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.34 ▼0.001.85 ▲0.2741.69 ▲2.44
Dashboard /wp-admin2,198 ▲215.61 ▼0.0385.90 ▼13.9540.59 ▼4.42
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0840.62 ▲2.1136.21 ▼1.47
Add New Post /wp-admin/post-new.php1,526 ▼1823.12 ▼2.13632.08 ▲16.9655.95 ▼9.91
Media Library /wp-admin/upload.php1,403 ▼04.17 ▼0.0395.63 ▼7.0244.50 ▼0.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cartpanda/cartpanda.php:206

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: 1-click, checkout, simple checkout, woocommerce, cartpanda

cartpanda/cartpanda.php Passed 13 tests

The primary PHP file in "Cartpanda" version 1.0.9 is used by WordPress to initiate all plugin functionality
112 characters long description:
O checkout transparente de 1-página de mais alta conversão do mercado. Upsell de 1-clique e Order Bump nativo.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin139 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13244139

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin