Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.82ms] Passed 4 tests
A check of server-side resources used by Freight Integration for Woocommerce to Logistra Cargonizer or Profrakt by WildRobot
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.27 ▼5.28 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.45 ▼3.87 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.14 ▼2.91 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.02 ▲5.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.18 ▲4.79 |
Server storage [IO: ▲5.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 83 new files
Database: 1 new table, 14 new options
New tables |
---|
wp_wildrobot_logistra_delivery_relations |
New WordPress options |
---|
db_upgraded |
wildrobot_logistra_cargonizer_backend_url_profrakt_DEV |
wildrobot_logistra_migrations |
wildrobot_logistra_cargonizer_backend_url |
widget_theysaidso_widget |
widget_recent-posts |
wildrobot_logistra_db_version |
can_compress_scripts |
wildrobot_logistra_cargonizer_backend_url_DEV |
wildrobot_logistra_backend_url_DEV |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Freight Integration for Woocommerce to Logistra Cargonizer or Profrakt by WildRobot
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.31 ▲0.20 | 1.62 ▼0.23 | 38.59 ▼6.65 |
Dashboard /wp-admin | 2,192 ▲14 | 5.64 ▼0.08 | 94.55 ▼14.72 | 39.80 ▼0.43 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.05 | 40.59 ▲2.49 | 33.91 ▼3.13 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.21 ▲0.03 | 612.54 ▼6.94 | 47.32 ▼5.65 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▼0.03 | 96.55 ▼3.84 | 41.59 ▼0.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_wildrobot_logistra_delivery_relations
- The uninstall procedure has failed, leaving 14 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- wildrobot_logistra_backend_url_DEV
- wildrobot_logistra_cargonizer_backend_url_profrakt
- wildrobot_logistra_migrations
- wildrobot_logistra_cargonizer_backend_url
- wildrobot_logistra_cargonizer_backend_url_DEV
- widget_recent-comments
- wildrobot_logistra_cargonizer_backend_url_profrakt_DEV
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/logistra-woocommerce-integrasjon-fra-wildrobot-app/public/partials/wildrobot-logistra-public-display.php
- > /wp-content/plugins/logistra-woocommerce-integrasjon-fra-wildrobot-app/admin/partials/wildrobot-logistra-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Screenshots: These screenshots need descriptions #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in logistra-woocommerce-integrasjon-fra-wildrobot-app/assets to your readme.txt
- Tags: There are too many tags (12 tag instead of maximum 10)
logistra-woocommerce-integrasjon-fra-wildrobot-app/logistra-robots.php 85% from 13 tests
The entry point to "Freight Integration for Woocommerce to Logistra Cargonizer or Profrakt by WildRobot" version 6.17.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("logistra-woocommerce-integrasjon-fra-wildrobot-app.php" instead of "logistra-robots.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin8,486 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 814 | 1,381 | 6,853 |
JavaScript | 4 | 21 | 143 | 890 |
CSS | 3 | 19 | 9 | 592 |
JSON | 2 | 0 | 0 | 132 |
Markdown | 1 | 5 | 0 | 19 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 114)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 30.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 190.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 114.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 2 | 6.06% |
Methods | 264 | |
▷ Static methods | 141 | 53.41% |
▷ Public methods | 197 | 74.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 67 | 25.38% |
Functions | 27 | |
▷ Named functions | 14 | 51.85% |
▷ Anonymous functions | 13 | 48.15% |
Constants | 10 | |
▷ Global constants | 2 | 20.00% |
▷ Class constants | 8 | 80.00% |
▷ Public constants | 8 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 3.11MB with 2.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-10.png | 368.73KB | 131.44KB | ▼ 64.35% |
assets/screenshot-7.png | 738.80KB | 303.37KB | ▼ 58.94% |
assets/screenshot-4.png | 62.02KB | 18.49KB | ▼ 70.19% |
assets/screenshot-5.png | 142.88KB | 39.87KB | ▼ 72.09% |
assets/screenshot-8.png | 269.13KB | 93.65KB | ▼ 65.20% |