Benchmarks
Plugin footprint 65% 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.90MB] [CPU: ▼38.68ms] Passed 4 tests
A check of server-side resources used by Sellsy
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.06 ▼0.40 | 16.66 ▼25.77 |
Dashboard /wp-admin | 3.11 ▼0.19 | 18.81 ▼29.81 |
Posts /wp-admin/edit.php | 3.11 ▼0.24 | 20.92 ▼26.80 |
Add New Post /wp-admin/post-new.php | 3.11 ▼2.77 | 17.79 ▼72.33 |
Media Library /wp-admin/upload.php | 3.11 ▼0.12 | 18.66 ▼15.09 |
Setting /wp-admin/admin.php?page=idSousMenu3 | 3.11 | 17.53 |
Sellsy /wp-admin/admin.php?page=idSellsy | 3.11 | 24.21 |
Support ticket /wp-admin/admin.php?page=idSousMenu1 | 3.11 | 17.96 |
Contact /wp-admin/admin.php?page=idSousMenu2 | 3.11 | 19.98 |
Server storage [IO: ▲1.46MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 80 new files
Database: 7 new tables, 6 new options
New tables |
---|
wp_sellsy_setting |
wp_sellsy_ticket |
wp_sellsy_contact |
wp_sellsy_contact_form |
wp_sellsy_version |
wp_sellsy_error |
wp_sellsy_ticket_form |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Sellsy
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲165 | 13.99 ▼0.30 | 9.06 ▲7.42 | 42.03 ▼1.59 |
Dashboard /wp-admin | 2,237 ▲60 | 5.78 ▲0.20 | 81.22 ▼6.70 | 66.62 ▲24.37 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.11 ▲0.09 | 33.41 ▼2.54 | 32.17 ▼7.66 |
Add New Post /wp-admin/post-new.php | 1,562 ▲34 | 21.17 ▼2.08 | 742.65 ▲70.77 | 58.58 ▼7.61 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.26 ▲0.11 | 106.99 ▲12.73 | 81.33 ▲37.92 |
Setting /wp-admin/admin.php?page=idSousMenu3 | 1,098 | 2.13 | 24.78 | 29.68 |
Sellsy /wp-admin/admin.php?page=idSellsy | 999 | 2.19 | 23.90 | 41.21 |
Support ticket /wp-admin/admin.php?page=idSousMenu1 | 885 | 2.10 | 24.76 | 26.76 |
Contact /wp-admin/admin.php?page=idSousMenu2 | 895 | 2.10 | 25.31 | 29.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=idSousMenu2
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sellsy/libs/intl-tel-input/index2.php
- > /wp-content/plugins/sellsy/view/manuel.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/sellsy/tests/ToolsControllerTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/sellsy/tests/SellsyCustomFieldsControllerTest.php:12
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5 in sellsy/assets to your readme.txt
sellsy/index.php 92% from 13 tests
The main PHP script in "Sellsy" version 2.3.3 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sellsy.php" instead of "index.php")
Code Analysis 97% from 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 plugin13,452 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 1,542 | 1,956 | 9,451 |
JavaScript | 6 | 39 | 678 | 2,376 |
CSS | 3 | 28 | 52 | 1,054 |
PO File | 1 | 307 | 582 | 500 |
XML | 2 | 8 | 8 | 39 |
JSON | 1 | 0 | 0 | 24 |
Markdown | 1 | 7 | 0 | 8 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 329)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 43.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 505.00 |
Average method complexity | 8.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 329.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 37 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 183 | |
▷ Static methods | 28 | 15.30% |
▷ Public methods | 181 | 98.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.09% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.27MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/intl-tel-input/build/img/flags.png | 64.41KB | 23.38KB | ▼ 63.70% |
images/icones/download.png | 0.70KB | 0.79KB | 0.00% |
images/icones/logo-big.png | 37.50KB | 7.08KB | ▼ 81.11% |
images/icones/icone_less.png | 0.29KB | 0.39KB | 0.00% |
images/icones/logo.png | 1.28KB | 0.52KB | ▼ 59.41% |