83% dividelo

Code Review | Divídelo para WooCommerce

WordPress plugin Divídelo para WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: dividelo
  • Plugin version: 0.0.8
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 26, 2022
  • Latest release: Dec 6, 2022
  • Number of updates: 12
  • Update frequency: every 18.6 days
  • Top authors: renzotejada (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.23ms] Passed 4 tests

An overview of server-side resources used by Divídelo para WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0447.66 ▲2.90
Dashboard /wp-admin3.35 ▲0.0549.33 ▼4.06
Posts /wp-admin/edit.php3.40 ▲0.0548.62 ▼3.01
Add New Post /wp-admin/post-new.php5.93 ▲0.0585.61 ▼7.34
Media Library /wp-admin/upload.php3.28 ▲0.0535.61 ▼2.52

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Divídelo para WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.24 ▼0.321.59 ▼0.6039.94 ▼3.03
Dashboard /wp-admin2,189 ▲95.54 ▼0.0483.25 ▼13.3841.42 ▲1.12
Posts /wp-admin/edit.php2,100 ▲31.97 ▲0.0041.20 ▲2.1634.45 ▼0.76
Add New Post /wp-admin/post-new.php1,526 ▼223.08 ▼0.07625.63 ▼29.2550.88 ▼2.40
Media Library /wp-admin/upload.php1,397 ▼64.20 ▼0.00102.82 ▼1.4941.95 ▼0.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dividelo/dividelo_producto_page.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dividelo/dividelo_admin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in dividelo/assets to your readme.txt
Please take inspiration from this readme.txt

dividelo/dividelo.php 77% from 13 tests

The main PHP file in "Divídelo para WooCommerce" ver. 0.0.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires PHP: Required version does not match the one declared in readme.txt ("5.6" instead of "5.6.20")
  • Requires at least: Required version does not match the one declared in readme.txt ("5.2" instead of "5.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
Success! There were no dangerous files found in this plugin300 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33828230
PO File1141448
JavaScript14022

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin