90% dotix

Code Review | Dotix

WordPress plugin Dotix scored 90% from 54 tests.

About plugin

  • Plugin page: dotix
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 22, 2019
  • Latest release: May 27, 2022
  • Number of updates: 12
  • Update frequency: every 84.1 days
  • Top authors: wpdo5ea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 947 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.18ms] Passed 4 tests

An overview of server-side resources used by Dotix
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1143.65 ▼0.06
Dashboard /wp-admin3.39 ▲0.0946.16 ▼11.06
Posts /wp-admin/edit.php3.51 ▲0.1546.59 ▲1.17
Add New Post /wp-admin/post-new.php5.98 ▲0.1088.94 ▼6.76
Media Library /wp-admin/upload.php3.32 ▲0.0937.69 ▲3.49
Dotix /wp-admin/options-general.php?page=dotix3.3452.34
All Apps /wp-admin/edit.php?post_type=vendor3.3635.58
Dotix Unit Set /wp-admin/edit-tags.php?taxonomy=vendor_dotix&post_type=vendor3.3336.21
Add New /wp-admin/post-new.php?post_type=vendor3.5258.25
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=vendor3.3136.45

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: 1 new table, 11 new options
New tables
wp_dotix_consume
New WordPress options
dotix.auto_upgrade
dotix.credit_title
widget_recent-comments
dotix.qrcode
widget_recent-posts
dotix._ver
dotix.qrcode_size
can_compress_scripts
theysaidso_admin_options
db_upgraded
...

Browser metrics Passed 4 tests

An overview of browser requirements for Dotix
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲10713.26 ▼1.491.61 ▼0.7443.81 ▼2.67
Dashboard /wp-admin2,245 ▲575.80 ▼0.04100.73 ▼1.7539.83 ▼0.77
Posts /wp-admin/edit.php2,131 ▲422.00 ▼0.0436.35 ▼1.0732.02 ▼6.12
Add New Post /wp-admin/post-new.php1,572 ▲3923.18 ▲0.06656.87 ▼20.6252.45 ▼10.41
Media Library /wp-admin/upload.php1,430 ▲424.19 ▼0.0499.39 ▼9.9140.77 ▼6.53
Dotix /wp-admin/options-general.php?page=dotix9352.0222.8628.00
All Apps /wp-admin/edit.php?post_type=vendor1,1171.9329.1827.43
Dotix Unit Set /wp-admin/edit-tags.php?taxonomy=vendor_dotix&post_type=vendor1,3422.1327.1229.99
Add New /wp-admin/post-new.php?post_type=vendor2,6707.83170.0772.00
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=vendor1,3432.1428.0032.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 11 options
    • dotix._ver
    • dotix.qrcode
    • dotix.auto_upgrade
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • dotix.credit_title
    • widget_recent-comments
    • widget_recent-posts
    • dotix.qrcode_size
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: ticket system for woocommerce, creditpoint system for woocommerce

dotix/dotix.php Passed 13 tests

This is the main PHP file of "Dotix" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
36 characters long description:
Ticket/credit system for WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,115 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP183034681,105
SQL10010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.73
▷ Minimum class complexity2.00
▷ Maximum class complexity28.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes00.00%
Methods75
▷ Static methods1824.00%
▷ Public methods6992.00%
▷ Protected methods34.00%
▷ Private methods34.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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