84% qubik-envios

Code Review | Qubik - Envios

WordPress plugin Qubik - Envios scored84%from 54 tests.

About plugin

  • Plugin page: qubik-envios
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Feb 18, 2022
  • Latest release: Mar 15, 2022
  • Number of updates: 4
  • Update frequency: every 6.3 days
  • Top authors: ConradoGalli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /570 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Qubik - Envios
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.75 ▼0.99
Dashboard /wp-admin3.40 ▲0.0949.67 ▼0.76
Posts /wp-admin/edit.php3.45 ▲0.0948.09 ▼9.11
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.46 ▼10.80
Media Library /wp-admin/upload.php3.32 ▲0.0934.17 ▼0.67

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Qubik - Envios
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,781 ▲2014.77 ▲0.411.23 ▼0.6046.60 ▼1.33
Dashboard /wp-admin2,195 ▲155.57 ▼0.1387.23 ▼4.1538.32 ▼4.36
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0035.69 ▼3.9332.41 ▼1.97
Add New Post /wp-admin/post-new.php1,545 ▼022.94 ▼0.41666.41 ▲38.5252.81 ▲3.17
Media Library /wp-admin/upload.php1,397 ▼34.25 ▲0.01102.82 ▼15.8446.48 ▼0.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 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 50% 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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qubik-envios/includes/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/qubik-envios/includes/data/services.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qubik-envios/includes/functions.php:2

User-side errors Passed 1 test

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


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
4 plugin tags: rates, qubik, shipping, woocommerce

qubik-envios/wanderlust-qubik.php 92% from 13 tests

The primary PHP file in "Qubik - Envios" version 0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("qubik-envios.php" instead of "wanderlust-qubik.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected656 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity5.83
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions18100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/assets/img/qubik.png5.55KB2.93KB▼ 47.12%
includes/img/qubik.png5.55KB2.93KB▼ 47.12%