Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.60MB] [CPU: ▼21.05ms] Passed 4 tests
A check of server-side resources used by Retrilhar Ecommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 36.39 ▼3.62 |
Dashboard /wp-admin | 3.39 ▲0.04 | 46.45 ▼16.43 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.82 ▼0.05 |
Add New Post /wp-admin/post-new.php | 3.28 ▼2.61 | 38.55 ▼63.38 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 34.47 ▼0.77 |
Produtos /wp-admin/admin.php?page=retrilhar_produtos | 3.32 | 41.76 |
Retrilhar /wp-admin/admin.php?page=retrilhar | 3.35 | 36.07 |
Retrilhar /wp-admin/plugins.php?page=retrilhar-page-shortcode | 3.38 | 28.72 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_retrilhar_produto |
wp_retrilhar_evento |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
retrilhar_ecommerce_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Retrilhar Ecommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲173 | 13.70 ▼0.47 | 8.25 ▲6.57 | 39.04 ▼4.31 |
Dashboard /wp-admin | 2,234 ▲53 | 5.61 ▼0.06 | 90.62 ▼9.62 | 38.73 ▼1.54 |
Posts /wp-admin/edit.php | 2,169 ▲69 | 1.99 ▲0.04 | 34.74 ▼7.09 | 32.83 ▼6.43 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.32 ▲0.01 | 598.02 ▼21.30 | 57.90 ▼2.32 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.28 ▲0.05 | 96.11 ▼10.71 | 41.25 ▼1.13 |
Produtos /wp-admin/admin.php?page=retrilhar_produtos | 911 | 2.00 | 23.75 | 29.06 |
Retrilhar /wp-admin/admin.php?page=retrilhar | 1,400 | 2.16 | 25.13 | 26.76 |
Retrilhar /wp-admin/plugins.php?page=retrilhar-page-shortcode | 807 | 2.15 | 22.02 | 23.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=retrilhar-page-shortcode
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
SRP 0% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/retrilhar-ecommerce/retrilhar-ecommerce.php
- > /wp-content/plugins/retrilhar-ecommerce/views/admin/shortcode-form.php
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Retrilhar\\Shortcode\\AbstractShortcode' not found in wp-content/plugins/retrilhar-ecommerce/src/Shortcode/Calendario.php:5
- > PHP Fatal error
Uncaught Error: Class 'Retrilhar\\Model\\AbstractModel' not found in wp-content/plugins/retrilhar-ecommerce/src/Model/Evento.php:5
- > PHP Fatal error
Uncaught Error: Class 'Retrilhar\\Shortcode\\AbstractShortcode' not found in wp-content/plugins/retrilhar-ecommerce/src/Shortcode/VitrinePeriodo.php:5
- > PHP Fatal error
Uncaught Error: Class 'Retrilhar\\Shortcode\\AbstractShortcode' not found in wp-content/plugins/retrilhar-ecommerce/src/Shortcode/ProdutoValor.php:5
- > PHP Fatal error
Uncaught Error: Class 'Retrilhar\\Model\\AbstractModel' not found in wp-content/plugins/retrilhar-ecommerce/src/Model/Produto.php:5
- > PHP Fatal error
Uncaught Error: Class 'Retrilhar\\Shortcode\\AbstractShortcode' not found in wp-content/plugins/retrilhar-ecommerce/src/Shortcode/VitrineEvento.php:5
- > PHP Fatal error
Uncaught Error: Class 'Retrilhar\\Shortcode\\AbstractShortcode' not found in wp-content/plugins/retrilhar-ecommerce/src/Shortcode/VitrineProduto.php:5
- > PHP Fatal error
Uncaught Error: Class 'Retrilhar\\Shortcode\\AbstractShortcode' not found in wp-content/plugins/retrilhar-ecommerce/src/Shortcode/ProdutoEvento.php:5
- > PHP Fatal error
Uncaught Error: Class 'Retrilhar\\Shortcode\\AbstractShortcode' not found in wp-content/plugins/retrilhar-ecommerce/src/Shortcode/VitrineAtividade.php:5
- > PHP Fatal error
Uncaught Error: Class 'Retrilhar\\Shortcode\\AbstractShortcode' not found in wp-content/plugins/retrilhar-ecommerce/src/Shortcode/VitrineEventoPost.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=retrilhar-page-shortcode
- > Javascript (severe) in unknown
/wp-content/plugins/retrilhar-ecommerce/assets/js/admin.js?ver=0.2.11 2:26 Uncaught ReferenceError: inlineEditPost is not defined
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Listagem de produtos), #2 (Detalhes do produto)
retrilhar-ecommerce/retrilhar-ecommerce.php Passed 13 tests
The primary PHP file in "Retrilhar Ecommerce" version 0.2.14 is used by WordPress to initiate all plugin functionality
38 characters long description:
Integração com o Retrilhar Ecommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,836 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 274 | 142 | 1,704 |
JavaScript | 3 | 8 | 12 | 57 |
CSS | 2 | 7 | 6 | 35 |
Markdown | 1 | 9 | 0 | 20 |
SVG | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 5.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 2 | 8.33% |
▷ Concrete classes | 22 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 57 | 76.00% |
▷ Public methods | 74 | 98.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.33% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.44MB with 0.22MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 30.97KB | 14.89KB | ▼ 51.92% |
assets/icon-256x256.png | 111.31KB | 57.54KB | ▼ 48.31% |
assets/banner-772x250.png | 312.61KB | 158.99KB | ▼ 49.14% |