89% wc-sell-to-continents

Code Review | Sell to Continents for WooCommerce

WordPress plugin Sell to Continents for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: wc-sell-to-contin...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Jun 13, 2020
  • Latest release: Aug 21, 2020
  • Number of updates: 5
  • Update frequency: every 14.0 days
  • Top authors: digitalduckplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /495 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Sell to Continents for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.68 ▼5.77
Dashboard /wp-admin3.31 ▲0.0153.98 ▼1.41
Posts /wp-admin/edit.php3.36 ▲0.0051.44 ▼1.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.80 ▼7.04
Media Library /wp-admin/upload.php3.23 ▲0.0040.93 ▲3.04

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Sell to Continents for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.182.20 ▲0.6045.09 ▲3.40
Dashboard /wp-admin2,198 ▲185.61 ▲0.0183.26 ▼11.4941.38 ▼0.33
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0735.87 ▼4.5335.33 ▼1.05
Add New Post /wp-admin/post-new.php1,526 ▼023.16 ▲0.18669.43 ▼11.9564.77 ▲11.39
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.04109.25 ▼1.9748.00 ▲1.61

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: countries, continents, selling locations, woocommerce

wc-sell-to-continents/wc-sell-to-continents.php 85% from 13 tests

The primary PHP file in "Sell to Continents for WooCommerce" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "3.0")

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
Everything looks great! No dangerous files found in this plugin89 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3388489

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
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