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.40MB] [CPU: ▼8.04ms] Passed 4 tests
A check of server-side resources used by imacPrestashop
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.41 | 47.34 ▲3.33 |
Dashboard /wp-admin | 3.72 ▲0.37 | 55.34 ▼16.42 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 49.69 ▼2.22 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 91.28 ▼13.40 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 36.28 ▼0.10 |
Ayuda Base de datos /wp-admin/admin.php?page=imacPrestashopbd_help | 3.61 | 36.38 |
imacprestashop /wp-admin/options-general.php?page=imacprestashop | 3.59 | 34.08 |
Configuraciones Prestashop Base de datos (OPCIÓN ANTIGUA) /wp-admin/admin.php?page=imacprestashopbd | 3.59 | 32.54 |
Ayuda WebService /wp-admin/admin.php?page=imacprestashop_help | 3.61 | 35.62 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_imacprestashop_widget_webservice |
widget_imacprestashop_widget |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
widget_imacprestashop_widget_webservice_cat |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for imacPrestashop
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲51 | 14.38 ▼0.26 | 1.81 ▼0.13 | 48.53 ▲6.35 |
Dashboard /wp-admin | 2,201 ▲21 | 5.64 ▼0.02 | 86.40 ▼13.77 | 39.80 ▼4.76 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.04 ▲0.10 | 33.91 ▼4.74 | 34.68 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.01 ▲0.04 | 657.38 ▼37.00 | 51.93 ▼5.63 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.00 | 96.79 ▼12.05 | 42.15 ▼4.95 |
Ayuda Base de datos /wp-admin/admin.php?page=imacPrestashopbd_help | 1,135 | 1.98 | 23.17 | 35.89 |
imacprestashop /wp-admin/options-general.php?page=imacprestashop | 1,133 | 2.01 | 25.98 | 48.94 |
Configuraciones Prestashop Base de datos (OPCIÓN ANTIGUA) /wp-admin/admin.php?page=imacprestashopbd | 982 | 1.14 | 8.05 | 23.90 |
Ayuda WebService /wp-admin/admin.php?page=imacprestashop_help | 1,137 | 1.99 | 23.11 | 30.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_imacprestashop_widget_webservice
- widget_recent-posts
- widget_imacprestashop_widget_webservice_cat
- can_compress_scripts
- theysaidso_admin_options
- widget_imacprestashop_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 29 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=imacprestashopbd
- > Notice in wp-content/plugins/imacprestashop/imacPrestashop.php+1259
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=imacprestashop
- > Notice in wp-content/plugins/imacprestashop/imacPrestashop.php+263
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=imacprestashopbd
- > Warning in wp-content/plugins/imacprestashop/imacPrestashop.php+1264
mysqli_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: YES)
SRP 50% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/imacprestashop/imacPrestashop.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Add a description for screenshot #4 in imacprestashop/assets to your readme.txt
- Plugin Name: Please specify the plugin name on the first line (
=== imacprestashop ===
)
imacprestashop/imacPrestashop.php 92% from 13 tests
The main PHP file in "imacPrestashop" ver. 2.0.17 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("imacprestashop.php" instead of "imacPrestashop.php")
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
There were no executable files found in this plugin2,208 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 140 | 23 | 2,089 |
CSS | 2 | 0 | 0 | 119 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 5.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/configuracion_imacprestashopws.png | 37.41KB | 18.58KB | ▼ 50.34% |