78% wc-payconiq

Code Review | Payconiq

WordPress plugin Payconiq scored78%from 54 tests.

About plugin

  • Plugin page: wc-payconiq
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: May 8, 2023
  • Latest release: May 11, 2023
  • Number of updates: 8
  • Update frequency: every 1.0 days
  • Top authors: payconiq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /290 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.40MB] [CPU: ▼5.58ms] Passed 4 tests

An overview of server-side resources used by Payconiq
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4144.77 ▲0.18
Dashboard /wp-admin3.72 ▲0.3753.85 ▼12.85
Posts /wp-admin/edit.php3.77 ▲0.4152.23 ▲1.00
Add New Post /wp-admin/post-new.php6.30 ▲0.4191.11 ▼10.66
Media Library /wp-admin/upload.php3.64 ▲0.4145.18 ▲7.88

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Payconiq
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.451.73 ▲0.0844.48 ▲0.93
Dashboard /wp-admin2,209 ▲215.06 ▼0.7496.58 ▼11.8138.15 ▼4.14
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0737.37 ▼2.8832.66 ▼1.26
Add New Post /wp-admin/post-new.php1,532 ▲1323.08 ▲0.03663.78 ▼2.5563.78 ▲9.84
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0396.81 ▼8.4041.97 ▼4.62

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wc-payconiq/lib/ioc/nikic/php-parser/grammar/rebuildParsers.php
  • 300× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wc-payconiq/lib/ioc/nikic/php-parser/test/PhpParser/Serializer/XMLTest.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Expr\\BinaryOp' not found in wp-content/plugins/wc-payconiq/lib/ioc/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanOr.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wc-payconiq/lib/ioc/nikic/php-parser/test/PhpParser/NodeTraverserTest.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Invoker\\ParameterResolver\\ParameterResolver' not found in wp-content/plugins/wc-payconiq/lib/ioc/php-di/invoker/src/ParameterResolver/TypeHintResolver.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Stmt' not found in wp-content/plugins/wc-payconiq/lib/ioc/nikic/php-parser/lib/PhpParser/Node/Stmt/TryCatch.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\odeAbstract' not found in wp-content/plugins/wc-payconiq/lib/ioc/nikic/php-parser/lib/PhpParser/Node/Name.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Stmt' not found in wp-content/plugins/wc-payconiq/lib/ioc/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUse.php:8
    • > PHP Warning
      unlink(wp-content/plugins/wc-payconiq/lib/ioc/nikic/php-parser/grammar/tmp_parser.php): No such file or directory in wp-content/plugins/wc-payconiq/lib/ioc/nikic/php-parser/grammar/rebuildParsers.php on line 70
    • > PHP Fatal error
      Uncaught Error: Class 'PhpParser\ode\\Scalar\\MagicConst' not found in wp-content/plugins/wc-payconiq/lib/ioc/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Namespace_.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'PhpParser\\ErrorHandler' not found in wp-content/plugins/wc-payconiq/lib/ioc/nikic/php-parser/lib/PhpParser/ErrorHandler/Collecting.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: payconiq, gateway, payment, woocommerce, wc

wc-payconiq/payconiq.php 85% from 13 tests

This is the main PHP file of "Payconiq" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wc-payconiq.php" instead of "payconiq.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin26,068 lines of code in 419 files:
LanguageFilesBlank linesComment linesLines of code
PHP3654,8526,19120,677
Markdown2574102,298
yacc3284121,791
JSON700613
YAML9301353
PO File13239103
SVG30192
XML414682
CSS14037
JavaScript161022

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.48
▷ Minimum class complexity1.00
▷ Maximum class complexity132.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces52
Interfaces27
Traits0
Classes323
▷ Abstract classes195.88%
▷ Concrete classes30494.12%
▷ Final classes72.30%
Methods2,353
▷ Static methods401.70%
▷ Public methods95040.37%
▷ Protected methods1,30755.55%
▷ Private methods964.08%
Functions43
▷ Named functions2148.84%
▷ Anonymous functions2251.16%
Constants197
▷ Global constants42.03%
▷ Class constants19397.97%
▷ Public constants19299.48%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin