10% conectadelsol-woocommerce

Code Review | ConectaDelSol WooCommerce

WordPress plugin ConectaDelSol WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: conectadelsol-woo...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7
  • WordPress version: 6.3.1
  • First release: Feb 24, 2017
  • Latest release: Apr 11, 2017
  • Number of updates: 15
  • Update frequency: every 3.9 days
  • Top authors: gguerra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,145 total downloads

Benchmarks

Plugin footprint 58% 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 had errors
    • > Warning in wp-content/plugins/conectadelsol-woocommerce/conectadelsol-woocommerce.php+24
    require_once(wp-content/plugins/woocommerce/includes/api/class-wc-rest-authentication.php): failed to open stream: No such file or directory

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

An overview of server-side resources used by ConectaDelSol WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0043.62 ▲0.90
Dashboard /wp-admin3.35 ▲0.0049.24 ▼1.26
Posts /wp-admin/edit.php3.40 ▲0.0051.63 ▲1.59
Add New Post /wp-admin/post-new.php5.93 ▲0.0086.08 ▼8.49
Media Library /wp-admin/upload.php3.27 ▲0.0037.16 ▼1.36

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for ConectaDelSol WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.061.81 ▲0.1340.23 ▼4.75
Dashboard /wp-admin2,195 ▲155.54 ▼0.0789.31 ▲3.0837.85 ▼1.89
Posts /wp-admin/edit.php2,097 ▼31.96 ▲0.0240.37 ▲1.4637.05 ▲1.99
Add New Post /wp-admin/post-new.php1,531 ▲323.03 ▼0.01699.43 ▼33.7663.03 ▲1.28
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.06101.05 ▼10.3745.23 ▼3.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/conectadelsol-woocommerce/prueba.php

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: conectadelsol, woocommerce, nowtic, factusol, delsol

conectadelsol-woocommerce/conectadelsol-woocommerce.php Passed 13 tests

The principal PHP file in "ConectaDelSol WooCommerce" v. 1.0.2 is loaded by WordPress automatically on each request
44 characters long description:
Tools to integrate WooCommerce with FactuSol

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
No dangerous file extensions were detected966 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP12387588918
PO File1132048

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.70
▷ Minimum class complexity2.00
▷ Maximum class complexity19.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods82
▷ Static methods11.22%
▷ Public methods7996.34%
▷ Protected methods00.00%
▷ Private methods33.66%
Functions12
▷ Named functions325.00%
▷ Anonymous functions975.00%
Constants19
▷ Global constants947.37%
▷ Class constants1052.63%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/icons/order-status/CustomOrderStatus1.png3.64KB0.50KB▼ 86.14%