94% connecta

Code Review | Connecta - link your Woocommerce store with your ebay account

WordPress plugin Connecta - link your Woocommerce store with your ebay account scored 94% from 54 tests.

About plugin

  • Plugin page: connecta
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.0.0
  • WordPress version: 5.8.1
  • First release: Nov 11, 2019
  • Latest release: Nov 13, 2019
  • Number of updates: 11
  • Update frequency: every 2.6 days
  • Top authors: mipromotionalsourcing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 375 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Connecta - link your Woocommerce store with your ebay account
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0125.14 ▲1.16
Dashboard /wp-admin3.07 ▲0.0032.58 ▼10.40
Posts /wp-admin/edit.php3.12 ▲0.0131.56 ▼0.44
Add New Post /wp-admin/post-new.php5.43 ▼0.0166.65 ▼576.15
Media Library /wp-admin/upload.php3.01 ▲0.0122.27 ▼1.32

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 148 new files
Database: no new tables, 2 new options
New WordPress options
mps_connecta_installed
mps_connecta_tutorial_stage

Browser metrics Passed 4 tests

Checking browser requirements for Connecta - link your Woocommerce store with your ebay account
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,680 ▲7915.89 ▲0.306.48 ▲0.7875.86 ▲0.82
Dashboard /wp-admin2,937 ▲386.12 ▼0.04111.57 ▼18.15164.09 ▼12.63
Posts /wp-admin/edit.php2,744 ▲73.23 ▼0.0063.32 ▲0.65140.29 ▼0.82
Add New Post /wp-admin/post-new.php3,810 ▲318.78 ▼0.14418.45 ▼42.04163.92 ▲0.79
Media Library /wp-admin/upload.php1,756 ▲45.53 ▼0.02155.54 ▲18.07193.82 ▲5.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 42× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/connecta/vendor/guzzlehttp/psr7/src/Uri.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/connecta/vendor/guzzlehttp/psr7/src/AppendStream.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/connecta/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/connecta/vendor/guzzlehttp/psr7/src/InflateStream.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/connecta/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/connecta/vendor/guzzlehttp/guzzle/src/Pool.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/connecta/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/connecta/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/connecta/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/connecta/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Imported orders shown in the WooCommerce orders list), #2 (Fulfilled Ebay order), #3 (Connecta plugin status page)
The official readme.txt is a good inspiration

connecta/connecta.php Passed 13 tests

The main PHP file in "Connecta - link your Woocommerce store with your ebay account" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
105 characters long description:
Link your WooCommerce store with your ebay account to automatically synchronize your orders and inventory

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 detected27,547 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
Sass13,479013,221
PHP1101,9295,3739,447
Markdown101,00603,211
CSS47331897
JSON600468
JavaScript3167286
make1409
SVG1018

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity12.74
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces8
Interfaces14
Traits2
Classes79
▷ Abstract classes00.00%
▷ Concrete classes79100.00%
▷ Final classes911.39%
Methods718
▷ Static methods8411.70%
▷ Public methods59282.45%
▷ Protected methods40.56%
▷ Private methods12216.99%
Functions156
▷ Named functions6239.74%
▷ Anonymous functions9460.26%
Constants52
▷ Global constants00.00%
▷ Class constants52100.00%
▷ Public constants52100.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/img/light-16x16.png0.30KB0.13KB▼ 54.93%