10% wc-zonos-hello-integration

Code Review | EP Zonos Integration for WooCommerce

WordPress plugin EP Zonos Integration for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: wc-zonos-hello-in...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7.1
  • WordPress version: 6.3.1
  • First release: May 21, 2021
  • Latest release: May 21, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: eripanci (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /299 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wc-zonos-hello-integration/classes/class-zonos-hello-scripts.php+12
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.92MB] [CPU: ▼55.39ms] Passed 4 tests

Analyzing server-side resources used by EP Zonos Integration for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.4010.95 ▼29.61
Dashboard /wp-admin2.08 ▼1.226.15 ▼46.72
Posts /wp-admin/edit.php2.08 ▼1.278.40 ▼41.52
Add New Post /wp-admin/post-new.php2.08 ▼3.807.15 ▼96.01
Media Library /wp-admin/upload.php2.08 ▼1.145.87 ▼37.30
Zonos Hello for WooCommerce Menu /wp-admin/options-general.php?page=zonos-hello-settings2.085.57

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for EP Zonos Integration for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.54 ▼1.081.87 ▲0.0142.16 ▼2.26
Dashboard /wp-admin2,210 ▲254.86 ▼1.00100.95 ▲0.6438.84 ▲0.14
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0137.78 ▲0.5029.89 ▼5.67
Add New Post /wp-admin/post-new.php1,536 ▲1723.32 ▲0.03620.89 ▼61.1748.06 ▼5.38
Media Library /wp-admin/upload.php1,392 ▲74.16 ▲0.0399.35 ▼9.3344.15 ▼1.45
Zonos Hello for WooCommerce Menu /wp-admin/options-general.php?page=zonos-hello-settings7922.0325.7330.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/wc-zonos-hello-integration/classes/class-zonos-hello-scripts.php+12
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after 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 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=zonos-hello-settings
    • > Notice in wp-content/plugins/wc-zonos-hello-integration/classes/class-zonos-hello-scripts.php+12
    Trying to access array offset on value of type bool

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
The SRP test was a success

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: zonos, woocoomerce currency, woocommerce

wc-zonos-hello-integration/wc-zonos-hello-integration.php Passed 13 tests

The main PHP file in "EP Zonos Integration for WooCommerce" ver. 0.0.1 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Plugin to show prices in the user location currency using Zonos Hello.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin271 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22710127
PHP33225118
Markdown114026

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity3.33
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin