78% quickex

Code Review | Quickex Сrypto Exchange

WordPress plugin Quickex Сrypto Exchange scored78%from 54 tests.

About plugin

  • Plugin page: quickex
  • Plugin version: 0.9.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.2
  • WordPress version: 6.3.1
  • First release: Mar 30, 2020
  • Latest release: Apr 1, 2020
  • Number of updates: 8
  • Update frequency: every 2.4 days
  • Top authors: quickex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,063 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.10ms] Passed 4 tests

A check of server-side resources used by Quickex Сrypto Exchange
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1144.28 ▼2.71
Dashboard /wp-admin3.44 ▲0.0650.58 ▼17.98
Posts /wp-admin/edit.php3.56 ▲0.1653.64 ▲2.07
Add New Post /wp-admin/post-new.php6.02 ▲0.10100.15 ▲9.04
Media Library /wp-admin/upload.php3.37 ▲0.1037.81 ▼1.78

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 17 new options
New WordPress options
quickex_terms_of_use_url
theysaidso_admin_options
quickex_show_refund_address
quickex_main_url
quickex_show_header
quickex_how_it_works_url
widget_theysaidso_widget
quickex_api_key
can_compress_scripts
quickex_theme_color
...

Browser metrics Passed 4 tests

Checking browser requirements for Quickex Сrypto Exchange
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.28 ▲0.082.20 ▲0.1744.48 ▲0.82
Dashboard /wp-admin2,224 ▲445.68 ▲0.0487.22 ▼11.4638.95 ▼3.71
Posts /wp-admin/edit.php2,129 ▲262.06 ▲0.0939.82 ▲5.3134.94 ▲1.91
Add New Post /wp-admin/post-new.php1,544 ▲1023.21 ▲4.99643.55 ▲8.2950.40 ▼24.19
Media Library /wp-admin/upload.php1,423 ▲234.25 ▲0.1299.20 ▼5.8543.95 ▼2.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 17 options in the database
    • can_compress_scripts
    • quickex_show_footer
    • quickex_show_refund_address
    • quickex_privacy_policy_url
    • db_upgraded
    • quickex_main_url
    • quickex_api_key
    • quickex_theme_color
    • theysaidso_admin_options
    • quickex_how_it_works_url
    • ...

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/quickex/views/step4.php
    • > /wp-content/plugins/quickex/views/rates_xml.php
    • > /wp-content/plugins/quickex/views/qstyle_init.php
    • > /wp-content/plugins/quickex/views/step2.php
    • > /wp-content/plugins/quickex/views/step3.php
  • 57× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: step in wp-content/plugins/quickex/views/step3.php on line 26
    • > PHP Fatal error
      Uncaught Error: Class 'Quickex' not found in wp-content/plugins/quickex/views/settings.php:2
    • > PHP Notice
      Undefined variable: refundAddress in wp-content/plugins/quickex/views/step3.php on line 87
    • > PHP Notice
      Trying to get property 'showHeader' of non-object in wp-content/plugins/quickex/views/main.php on line 8
    • > PHP Notice
      Undefined variable: progress in wp-content/plugins/quickex/views/step3.php on line 53
    • > PHP Notice
      Undefined variable: to in wp-content/plugins/quickex/views/step2.php on line 50
    • > PHP Notice
      Undefined variable: to in wp-content/plugins/quickex/views/step4.php on line 50
    • > PHP Notice
      Undefined variable: expectedAmountFrom in wp-content/plugins/quickex/views/step3.php on line 27
    • > PHP Notice
      Undefined variable: info in wp-content/plugins/quickex/views/step2.php on line 53
    • > PHP Fatal error
      Uncaught Error: Class 'Quickex' not found in wp-content/plugins/quickex/views/widget.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
Please fix the following attributes:
  • Tags: There are too many tags (14 tag instead of maximum 10)
Please take inspiration from this readme.txt

quickex/quickex.php Passed 13 tests

"Quickex Сrypto Exchange" version 0.9.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
74 characters long description:
Create your own exchanger based on free CMS Wordpress with Quickex widget.

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
There were no executable files found in this plugin4,187 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript63891671,758
CSS335621,382
PHP1187851,007
Markdown114040

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity26.00
▷ Minimum class complexity10.00
▷ Maximum class complexity42.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods13.45%
▷ Public methods1965.52%
▷ Protected methods00.00%
▷ Private methods1034.48%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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