68% ultraleet-wc-erply-integration

Code Review | Ultraleet Woocommerce Erply Integration

WordPress plugin Ultraleet Woocommerce Erply Integration scored68%from 54 tests.

About plugin

  • Plugin page: ultraleet-wc-erpl...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.4
  • WordPress version: 6.3.1
  • First release: Feb 26, 2020
  • Latest release: Feb 26, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ultraleet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /434 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 gracefully, with no errors

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

A check of server-side resources used by Ultraleet Woocommerce Erply Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.45 ▼3.23
Dashboard /wp-admin3.31 ▲0.0049.67 ▼4.87
Posts /wp-admin/edit.php3.36 ▲0.0048.25 ▼0.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.41 ▼11.80
Media Library /wp-admin/upload.php3.23 ▲0.0037.32 ▲1.23

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 793 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultraleet Woocommerce Erply Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.53 ▼1.221.89 ▲0.0241.11 ▼7.98
Dashboard /wp-admin2,203 ▲155.84 ▲0.96101.30 ▼19.5340.09 ▼4.32
Posts /wp-admin/edit.php2,092 ▼02.05 ▲0.0253.41 ▲13.7041.56 ▲8.14
Add New Post /wp-admin/post-new.php1,514 ▼017.70 ▲0.01611.99 ▼40.1955.29 ▲2.08
Media Library /wp-admin/upload.php1,388 ▲34.15 ▼0.0797.26 ▼2.8443.91 ▲1.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 items
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/ultraleet-wc-erply-integration/vendor/nikic/php-parser/grammar/rebuildParsers.php
    • > /wp-content/plugins/ultraleet-wc-erply-integration/vendor/ultraleet/wp-settings/assets/views/fields/section-header.php
    • > /wp-content/plugins/ultraleet-wc-erply-integration/vendor/slim/php-view/tests/testLayout.php
    • > /wp-content/plugins/ultraleet-wc-erply-integration/vendor/ultraleet/wp-settings/assets/views/section.php
    • > /wp-content/plugins/ultraleet-wc-erply-integration/vendor/ultraleet/wp-settings/assets/views/settings.php
  • 540× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'PhpParser\ode' not found in wp-content/plugins/ultraleet-wc-erply-integration/vendor/nikic/php-parser/lib/PhpParser/NodeAbstract.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/ultraleet-wc-erply-integration/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Expr' not found in wp-content/plugins/ultraleet-wc-erply-integration/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Invoker\\Exception\\InvocationException' not found in wp-content/plugins/ultraleet-wc-erply-integration/vendor/php-di/invoker/src/Exception/NotCallableException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Expr\\Cast' not found in wp-content/plugins/ultraleet-wc-erply-integration/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Unset_.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Config\\ConfigCacheInterface' not found in wp-content/plugins/ultraleet-wc-erply-integration/vendor/symfony/config/ResourceCheckerConfigCache.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Scalar' not found in wp-content/plugins/ultraleet-wc-erply-integration/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/LNumber.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/ultraleet-wc-erply-integration/vendor/psr/http-message/src/ServerRequestInterface.php:43
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Stmt' not found in wp-content/plugins/ultraleet-wc-erply-integration/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Finally_.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Doctrine\\Common\\Lexer\\AbstractLexer' not found in wp-content/plugins/ultraleet-wc-erply-integration/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocLexer.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: integration, erply, e-commerce, ecommerce, pos...

ultraleet-wc-erply-integration/woocommerce-erply-integration.php 92% from 13 tests

The principal PHP file in "Ultraleet Woocommerce Erply Integration" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ultraleet-wc-erply-integration.php" instead of "woocommerce-erply-integration.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please make sure to remedy the following
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/ultraleet-wc-erply-integration/vendor/bin/php-parse.bat
48,744 lines of code in 764 files:
LanguageFilesBlank linesComment linesLines of code
PHP7159,15821,98541,608
JavaScript104038112,033
yacc3300121,857
Markdown1649501,393
JSON1001,165
YAML7191228
reStructuredText4193298169
XSD1190151
CSS292462
XML25354
Bourne Shell13110
SQL10010
DOS Batch1004

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.36
Average class complexity8.23
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces116
Interfaces71
Traits11
Classes599
▷ Abstract classes437.18%
▷ Concrete classes55692.82%
▷ Final classes264.68%
Methods3,346
▷ Static methods1815.41%
▷ Public methods2,46873.76%
▷ Protected methods60618.11%
▷ Private methods2728.13%
Functions1,245
▷ Named functions574.58%
▷ Anonymous functions1,18895.42%
Constants358
▷ Global constants298.10%
▷ Class constants32991.90%
▷ Public constants30993.92%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected