93% juno-split

Code Review | Juno Split

WordPress plugin Juno Split scored 93% from 54 tests.

About plugin

  • Plugin page: juno-split
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.7.0
  • WordPress version: 5.8.1
  • First release: Aug 20, 2020
  • Latest release: Mar 30, 2021
  • Number of updates: 13
  • Update frequency: every 20.2 days
  • Top authors: Amgnando (46.15%)junowoocommerce (38.46%)marcofrasson (30.77%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 1,782 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼139.91ms] Passed 4 tests

A check of server-side resources used by Juno Split
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1433.20 ▲10.52
Dashboard /wp-admin3.08 ▲0.0344.99 ▲2.02
Posts /wp-admin/edit.php3.13 ▲0.0343.51 ▲1.94
Add New Post /wp-admin/post-new.php5.44 ▲0.0189.06 ▼563.86
Media Library /wp-admin/upload.php3.02 ▲0.0232.54 ▲0.28

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Juno Split
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.89 ▲0.109.74 ▲1.7550.67 ▼1.41
Dashboard /wp-admin2,980 ▲496.09 ▲0.14160.92 ▲20.95112.18 ▼4.03
Posts /wp-admin/edit.php2,746 ▲72.68 ▼0.0167.80 ▲4.5482.30 ▼4.87
Add New Post /wp-admin/post-new.php1,507 ▲718.50 ▼0.15369.62 ▼6.40115.39 ▲0.24
Media Library /wp-admin/upload.php1,820 ▲135.02 ▼0.00145.47 ▼13.56115.94 ▲3.82

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/juno-split/includes/marketplaces/views/html-edit-profile.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #5 (Página de configuração da integração com a Juno.), #6 (Configuração dos meios de pagamento.), #7 (Página de configuração do boleto bancário da Juno.), #8 (Página de configuração do cartão de crédito da Juno.), #9 (Widget no admin com o saldo da sua conta na Juno.)
You can take inspiration from this readme.txt

juno-split/wc-juno-marketplace.php 77% from 13 tests

Analyzing the main PHP file in "Juno Split" version 1.1.4
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("juno-split.php" instead of "wc-juno-marketplace.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "3.5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected704 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP15241176704

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.92
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes17.69%
▷ Concrete classes1292.31%
▷ Final classes00.00%
Methods58
▷ Static methods915.52%
▷ Public methods58100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin