Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.37MB] [CPU: ▼0.14ms] Passed 4 tests
Analyzing server-side resources used by DyaPress ERP/CRM
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.11 ▲0.75 |
Dashboard /wp-admin | 9.80 ▲6.50 | 138.95 ▲88.54 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 48.16 ▼2.50 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.48 | 86.92 ▼2.96 |
Media Library /wp-admin/upload.php | 3.71 ▲0.49 | 41.88 ▲4.17 |
Server storage [IO: ▲207.13MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- Total filesystem usage must be limited to 25MB (currently using 207.13MB)
Filesystem: 14,459 new files
Database: no new tables, 7 new options
New WordPress options |
---|
dyapress_options |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DyaPress ERP/CRM
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲14 | 14.28 ▼0.35 | 1.71 ▼0.24 | 43.52 ▲0.82 |
Dashboard /wp-admin | 2,194 ▲17 | 5.52 ▼0.13 | 81.83 ▼2.14 | 75.35 ▲33.06 |
Posts /wp-admin/edit.php | 2,111 ▲8 | 1.96 ▼0.03 | 36.78 ▼0.92 | 35.75 ▲2.71 |
Add New Post /wp-admin/post-new.php | 1,566 ▲40 | 18.18 ▼5.36 | 712.64 ▲27.80 | 57.81 ▲3.36 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.20 ▲0.03 | 92.63 ▼7.24 | 63.20 ▲17.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2256× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/dyapress/core/boxes/box_accountancy_last_manual_entries.php
- > /wp-content/plugins/dyapress/asset/admin/setup.php
- > /wp-content/plugins/dyapress/product/stock/stocktransfer/stocktransfer_note.php
- > /wp-content/plugins/dyapress/hrm/lib/hrm_skilldet.lib.php
- > /wp-content/plugins/dyapress/ecm/dir_add_card.php
- > /wp-content/plugins/dyapress/core/bookmarks_page.php
- > /wp-content/plugins/dyapress/fourn/class/fournisseur.commande.dispatch.class.php
- > /wp-content/plugins/dyapress/societe/class/api_thirdparties.class.php
- > /wp-content/plugins/dyapress/asset/model/card.php
- > /wp-content/plugins/dyapress/fourn/commande/note.php
- 1385× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/dyapress/includes/webklex/php-imap/vendor/symfony/polyfill-mbstring/bootstrap80.php on line 15
- > PHP Fatal error
Uncaught Error: Interface 'Swift_Mime_ContentEncoder' not found in wp-content/plugins/dyapress/includes/swiftmailer/lib/classes/Swift/Mime/ContentEncoder/NativeQpContentEncoder.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Support\\ValidatedData' not found in wp-content/plugins/dyapress/includes/webklex/php-imap/vendor/illuminate/support/ValidatedInput.php:9
- > PHP Fatal error
Uncaught Error: Class 'OAuth\\Common\\Storage\\Exception\\StorageException' not found in wp-content/plugins/dyapress/includes/OAuth/Common/Storage/Exception/AuthorizationStateNotFoundException.php:8
- > PHP Warning
Use of undefined constant DB_PASSWORD - assumed 'DB_PASSWORD' (this will throw an Error in a future version of PHP) in wp-content/plugins/dyapress/dyapress-init.php on line 79
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/dyapress/includes/stripe/stripe-php/lib/Service/SubscriptionService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/dyapress/includes/stripe/stripe-php/lib/TestHelpers/TestClock.php:24
- > PHP Fatal error
Uncaught Error: Class 'Sabre\\CalDAV\\Backend\\AbstractBackend' not found in wp-content/plugins/dyapress/includes/sabre/sabre/dav/lib/CalDAV/Backend/SimplePDO.php:36
- > PHP Notice
Trying to access array offset on value of type int in wp-content/plugins/dyapress/includes/tecnickcom/tcpdf/tcpdf.php on line 4834
- > PHP Fatal error
Uncaught Error: Interface 'PhpOffice\\PhpSpreadsheet\\RichText\\ITextElement' not found in wp-content/plugins/dyapress/includes/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/TextElement.php:5
- > PHP Parse 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== dyapress ===
)
dyapress/dyapress.php 92% from 13 tests
The main PHP script in "DyaPress ERP/CRM" version 18.0.2.0 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/dyapress/includes/stripe/stripe-php/data/ca-certificates.crt
- ☣ wp-content/plugins/dyapress/includes/tecnickcom/tcpdf/examples/data/cert/tcpdf.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4,265 | 203,582 | 389,973 | 1,035,375 |
JavaScript | 842 | 42,984 | 41,987 | 382,645 |
JSON | 45 | 2 | 0 | 66,857 |
SQL | 812 | 5,122 | 21,777 | 58,695 |
YAML | 13 | 42 | 6 | 25,268 |
SVG | 194 | 4 | 32 | 18,418 |
CSS | 78 | 4,703 | 709 | 18,055 |
XML | 8 | 5 | 0 | 16,418 |
Markdown | 107 | 3,965 | 0 | 11,789 |
Sass | 19 | 507 | 34 | 4,745 |
LESS | 18 | 504 | 55 | 4,698 |
HTML | 32 | 224 | 28 | 1,920 |
TypeScript | 2 | 57 | 4 | 1,259 |
Blade | 7 | 18 | 26 | 261 |
Python | 2 | 62 | 103 | 223 |
AsciiDoc | 2 | 78 | 4 | 122 |
Bourne Shell | 1 | 0 | 0 | 2 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,386)
- Method cyclomatic complexity should be reduced to less than 100 (currently 502)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 34.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,386.00 |
Average method complexity | 5.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 502.00 |
Code structure | ||
---|---|---|
Namespaces | 260 | |
Interfaces | 284 | |
Traits | 57 | |
Classes | 2,307 | |
▷ Abstract classes | 175 | 7.59% |
▷ Concrete classes | 2,132 | 92.41% |
▷ Final classes | 10 | 0.47% |
Methods | 20,565 | |
▷ Static methods | 2,092 | 10.17% |
▷ Public methods | 17,777 | 86.44% |
▷ Protected methods | 1,701 | 8.27% |
▷ Private methods | 1,087 | 5.29% |
Functions | 1,877 | |
▷ Named functions | 1,421 | 75.71% |
▷ Anonymous functions | 456 | 24.29% |
Constants | 4,338 | |
▷ Global constants | 1,176 | 27.11% |
▷ Class constants | 3,162 | 72.89% |
▷ Public constants | 3,160 | 99.94% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1011 compressed PNG files occupy 2.54MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
theme/eldy/img/object_phoning.png | 0.33KB | 0.39KB | 0.00% |
theme/md/img/object_dir.png | 0.10KB | 0.14KB | 0.00% |
theme/eldy/img/object_holiday.png | 0.73KB | 0.88KB | 0.00% |
theme/md/img/object_intervention.png | 0.26KB | 0.58KB | 0.00% |
theme/common/flags/en.png | 0.29KB | 0.29KB | 0.00% |