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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 44.73 ▲7.02 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.95 ▼5.06 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.90 ▲1.23 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.46 ▼8.07 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.01 ▼1.20 |
Configuration /wp-admin/admin.php?page=ubiliz-gs-settings | 3.28 | 32.27 |
Produits /wp-admin/admin.php?page=ubiliz-gs-products | 3.28 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲212 | 13.68 ▼0.61 | 5.76 ▲3.93 | 39.59 ▼3.68 |
Dashboard /wp-admin | 2,256 ▲68 | 5.86 ▲0.87 | 109.54 ▼3.42 | 70.83 ▲23.15 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.04 ▲0.05 | 38.09 ▼5.29 | 36.48 ▼0.51 |
Add New Post /wp-admin/post-new.php | 1,714 ▲180 | 22.32 ▼0.76 | 665.52 ▼5.18 | 42.71 ▼12.79 |
Media Library /wp-admin/upload.php | 1,438 ▲50 | 4.14 ▲0.03 | 105.51 ▼10.61 | 46.23 ▼2.13 |
Configuration /wp-admin/admin.php?page=ubiliz-gs-settings | 854 | 2.04 | 26.29 | 26.52 |
Produits /wp-admin/admin.php?page=ubiliz-gs-products | 827 | 2.03 | 23.15 | 24.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 122 | 129 | 562 |
CSS | 2 | 40 | 0 | 250 |
SVG | 3 | 0 | 3 | 45 |
JavaScript | 3 | 4 | 0 | 25 |
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 code | 0.44 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 33 | |
▷ Static methods | 4 | 12.12% |
▷ Public methods | 16 | 48.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 51.52% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 0 | 0.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