90% wc-itau-shopline

Code Review | Itau Shopline for WooCommerce

WordPress plugin Itau Shopline for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wc-itau-shopline
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Sep 8, 2015
  • Latest release: Aug 11, 2020
  • Number of updates: 15
  • Update frequency: every 120.0 days
  • Top authors: claudiosanches (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

500+ active /9,607 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.67ms] Passed 4 tests

A check of server-side resources used by Itau Shopline for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1337.44 ▼8.35
Dashboard /wp-admin3.42 ▲0.1256.80 ▲5.31
Posts /wp-admin/edit.php3.54 ▲0.1855.18 ▲6.85
Add New Post /wp-admin/post-new.php6.00 ▲0.1287.46 ▼21.02
Media Library /wp-admin/upload.php3.35 ▲0.1242.35 ▲5.40

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Itau Shopline for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1414.21 ▼0.411.67 ▼0.6541.12 ▼1.93
Dashboard /wp-admin2,203 ▲235.62 ▼0.0592.62 ▼7.1439.74 ▼1.34
Posts /wp-admin/edit.php2,112 ▲121.99 ▼0.0439.85 ▲4.5136.93 ▲0.31
Add New Post /wp-admin/post-new.php1,539 ▲1123.40 ▼0.07696.04 ▲86.6962.99 ▲7.54
Media Library /wp-admin/upload.php1,411 ▲84.22 ▲0.03111.45 ▲12.3348.50 ▲3.73

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: itau, shopline, woocommerce, payment

wc-itau-shopline/wc-itau-shopline.php 92% from 13 tests

The main PHP script in "Itau Shopline for WooCommerce" version 1.1.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected883 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP11242532883

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity18.80
▷ Minimum class complexity4.00
▷ Maximum class complexity40.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods53
▷ Static methods815.09%
▷ Public methods3566.04%
▷ Protected methods1018.87%
▷ Private methods815.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/banking-billet.png1.33KB0.45KB▼ 66.25%
assets/images/itau.png1.96KB1.11KB▼ 43.46%