77% moova-for-woocommerce

Code Review | Moova for WooCommerce

WordPress plugin Moova for WooCommerce scored77%from 54 tests.

About plugin

  • Plugin page: moova-for-woocomm...
  • Plugin version: 5.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2
  • WordPress version: 6.3.1
  • First release: Jan 10, 2020
  • Latest release: Nov 2, 2023
  • Number of updates: 72
  • Update frequency: every 19.3 days
  • Top authors: moova (79.17%)axelcandia (22.22%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /6,444 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by Moova for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.25 ▼3.98
Dashboard /wp-admin3.31 ▲0.0045.97 ▼5.37
Posts /wp-admin/edit.php3.36 ▲0.0046.37 ▲3.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.02 ▼5.14
Media Library /wp-admin/upload.php3.23 ▲0.0033.17 ▲1.58
Ajustes /wp-admin/admin.php?page=wc-moova-settings3.0022.42
Logs /wp-admin/admin.php?page=wc-moova-logs3.0023.07
Mapeo /wp-admin/admin.php?page=wc-moova-mapping3.0020.67
Help & News /wp-admin/admin.php?page=wc-moova-help3.0021.99

Server storage [IO: ▲0.14MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Moova for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.011.53 ▼0.3340.42 ▼4.99
Dashboard /wp-admin2,189 ▲95.51 ▼0.1487.87 ▼9.7438.28 ▼4.68
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0639.59 ▲0.9835.15 ▲3.07
Add New Post /wp-admin/post-new.php1,526 ▼022.98 ▼0.20605.25 ▼80.7352.09 ▼1.05
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0197.56 ▼0.9942.00 ▼4.31
Ajustes /wp-admin/admin.php?page=wc-moova-settings280.420.083.82
Logs /wp-admin/admin.php?page=wc-moova-logs280.420.093.49
Mapeo /wp-admin/admin.php?page=wc-moova-mapping280.420.063.42
Help & News /wp-admin/admin.php?page=wc-moova-help280.420.073.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Moova\\Settings\\Sections\\Section' not found in wp-content/plugins/moova-for-woocommerce/Settings/GeneralSettings/SellerSection.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Moova\\Settings\\Fields\\FieldInterface' not found in wp-content/plugins/moova-for-woocommerce/Settings/Fields/Field.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Moova\\Settings\\Sections\\Section' not found in wp-content/plugins/moova-for-woocommerce/Settings/GeneralSettings/CheckoutSection.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Moova\\Settings\\Fields\\Field' not found in wp-content/plugins/moova-for-woocommerce/Settings/Fields/SelectField.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Moova\\Settings\\Sections\\Section' not found in wp-content/plugins/moova-for-woocommerce/Settings/Mapping/SendingStatusSection.php:11
    • > PHP Fatal error
      Trait 'Moova\\Helper\oticesTrait' not found in wp-content/plugins/moova-for-woocommerce/Helper/Helper.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'Moova\\Settings\\Sections\\Section' not found in wp-content/plugins/moova-for-woocommerce/Settings/GeneralSettings/MoovaSection.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Moova\\Settings\\Fields\\Field' not found in wp-content/plugins/moova-for-woocommerce/Settings/Fields/DescriptionField.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Moova\\Settings\\Fields\\Field' not found in wp-content/plugins/moova-for-woocommerce/Settings/Fields/NumberField.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Moova\\Api\\ApiConnector' not found in wp-content/plugins/moova-for-woocommerce/Api/MoovaApi.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=wc-moova-settings
    • > Network (severe)
    wp-admin/admin.php?page=wc-moova-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=wc-moova-logs
    • > Network (severe)
    wp-admin/admin.php?page=wc-moova-logs - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=wc-moova-mapping
    • > Network (severe)
    wp-admin/admin.php?page=wc-moova-mapping - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=wc-moova-help
    • > Network (severe)
    wp-admin/admin.php?page=wc-moova-help - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in moova-for-woocommerce/assets to your readme.txt
  • Contributors: Plugin contributors not specified
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

moova-for-woocommerce/woo-moova.php 85% from 13 tests

The main file in "Moova for WooCommerce" v. 5.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("6.2" instead of "3.3")
  • Main file name: The principal plugin file should be the same as the plugin slug ("moova-for-woocommerce.php" instead of "woo-moova.php")

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 plugin2,974 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP423825452,655
JavaScript5363237
Sass18061
CSS30015
SVG1006

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity6.63
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces13
Interfaces3
Traits7
Classes31
▷ Abstract classes13.23%
▷ Concrete classes3096.77%
▷ Final classes413.33%
Methods170
▷ Static methods10058.82%
▷ Public methods15490.59%
▷ Protected methods21.18%
▷ Private methods148.24%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-shipping.png12.71KB6.36KB▼ 49.97%
assets/img/logo.png1.06KB1.00KB▼ 5.64%