84% zouti

Code Review | Zouti Checkout

WordPress plugin Zouti Checkout scored84%from 54 tests.

About plugin

  • Plugin page: zouti
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2023
  • Latest release: Mar 28, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: contatozouti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /165 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by Zouti Checkout
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.26 ▼4.38
Dashboard /wp-admin3.32 ▼0.0253.48 ▼9.20
Posts /wp-admin/edit.php3.37 ▲0.0254.23 ▼1.24
Add New Post /wp-admin/post-new.php5.90 ▲0.02113.03 ▲6.97
Media Library /wp-admin/upload.php3.24 ▲0.0243.45 ▲8.66

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Zouti Checkout
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.111.68 ▲0.0341.42 ▼0.99
Dashboard /wp-admin2,198 ▲185.63 ▼0.0491.72 ▼6.3738.39 ▼4.82
Posts /wp-admin/edit.php2,103 ▼02.01 ▲0.0239.26 ▼2.7334.45 ▼0.65
Add New Post /wp-admin/post-new.php1,526 ▼223.25 ▲0.29679.96 ▲13.7051.59 ▼20.95
Media Library /wp-admin/upload.php1,400 ▲34.11 ▼0.09109.58 ▲10.0547.35 ▲5.40

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zouti/zouti-checkout-wc.php:239

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: dropshipping checkout, onepage checkout, zouti, checkout transparente, checkout

zouti/zouti-checkout-wc.php 92% from 13 tests

Analyzing the main PHP file in "Zouti Checkout" version 1.0.0
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zouti.php" instead of "zouti-checkout-wc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected163 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13442163

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
No PNG images were found in this plugin