77% ubiliz-boutique-cadeau

Code Review | Ubiliz - Boutique cadeau

WordPress plugin Ubiliz - Boutique cadeau scored 77% from 54 tests.

About plugin

  • Plugin page: ubiliz-boutique-c...
  • Plugin version: 1.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Oct 15, 2022
  • Latest release: Jan 26, 2023
  • Number of updates: 8
  • Update frequency: every 13.1 days
  • Top authors: antoineubiliz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 853 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.28ms] Passed 4 tests

Analyzing server-side resources used by Ubiliz - Boutique cadeau
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0444.73 ▲7.02
Dashboard /wp-admin3.32 ▲0.0244.95 ▼5.06
Posts /wp-admin/edit.php3.38 ▲0.0248.90 ▲1.23
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.46 ▼8.07
Media Library /wp-admin/upload.php3.25 ▲0.0236.01 ▼1.20
Configuration /wp-admin/admin.php?page=ubiliz-gs-settings3.2832.27
Produits /wp-admin/admin.php?page=ubiliz-gs-products3.2831.58

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ubiliz - Boutique cadeau
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲21213.68 ▼0.615.76 ▲3.9339.59 ▼3.68
Dashboard /wp-admin2,256 ▲685.86 ▲0.87109.54 ▼3.4270.83 ▲23.15
Posts /wp-admin/edit.php2,139 ▲502.04 ▲0.0538.09 ▼5.2936.48 ▼0.51
Add New Post /wp-admin/post-new.php1,714 ▲18022.32 ▼0.76665.52 ▼5.1842.71 ▼12.79
Media Library /wp-admin/upload.php1,438 ▲504.14 ▲0.03105.51 ▼10.6146.23 ▼2.13
Configuration /wp-admin/admin.php?page=ubiliz-gs-settings8542.0426.2926.52
Produits /wp-admin/admin.php?page=ubiliz-gs-products8272.0323.1524.29

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ubiliz-boutique-cadeau/templates/app--products.tpl.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ubiliz-boutique-cadeau/templates/admin--products.tpl.php:13
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/ubiliz-boutique-cadeau/templates/app--products.tpl.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ubiliz-boutique-cadeau/templates/app--products-iframe.tpl.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ubiliz-boutique-cadeau/templates/admin--settings.tpl.php:15
    • > PHP Notice
      Undefined variable: products in wp-content/plugins/ubiliz-boutique-cadeau/templates/app--products.tpl.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ubiliz-boutique-cadeau/ubiliz-gift-store.php:39

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
Please take inspiration from this readme.txt

ubiliz-boutique-cadeau/ubiliz-gift-store.php 77% from 13 tests

"Ubiliz - Boutique cadeau" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 205 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("ubiliz-boutique-cadeau.php" instead of "ubiliz-gift-store.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
Success! There were no dangerous files found in this plugin882 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP5122129562
CSS2400250
SVG30345
JavaScript34025

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods33
▷ Static methods412.12%
▷ Public methods1648.48%
▷ Protected methods00.00%
▷ Private methods1751.52%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin