Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.48ms] Passed 4 tests
Server-side resources used by SkyNet Shipping WooCommerce Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.76 ▼1.94 |
Dashboard /wp-admin | 3.31 ▼0.04 | 52.91 ▼9.72 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.32 ▲1.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.00 ▼23.48 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.08 ▲2.03 |
Server storage [IO: ▲0.37MB] [DB: ▲0.31MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 97 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_skynet_settings |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SkyNet Shipping WooCommerce Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.26 ▼0.01 | 1.86 ▲0.07 | 43.67 ▲1.62 |
Dashboard /wp-admin | 2,192 ▲15 | 5.62 ▼0.01 | 96.34 ▲3.64 | 42.67 ▲5.70 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.98 ▲0.03 | 34.85 ▼6.35 | 31.84 ▼4.77 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.16 ▲0.09 | 654.77 ▼33.49 | 56.50 ▼2.00 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.19 ▼0.01 | 101.48 ▼2.60 | 49.02 ▲3.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_skynet_settings
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 fix the following items
- 26× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Exception\\ExceptionInterface' not found in wp-content/plugins/skynet-shipping/includes/vendor/vlucas/phpdotenv/src/Exception/ValidationException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\WriterInterface' not found in wp-content/plugins/skynet-shipping/includes/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReplacingWriter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\ReaderInterface' not found in wp-content/plugins/skynet-shipping/includes/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiReader.php:9
- > PHP Fatal error
Uncaught Error: Class 'GrahamCampbell\\ResultType\\Result' not found in wp-content/plugins/skynet-shipping/includes/vendor/graham-campbell/result-type/src/Success.php:24
- > PHP Fatal error
Uncaught Error: Class 'PhpOption\\Option' not found in wp-content/plugins/skynet-shipping/includes/vendor/phpoption/phpoption/src/PhpOption/Some.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\AdapterInterface' not found in wp-content/plugins/skynet-shipping/includes/vendor/vlucas/phpdotenv/src/Repository/Adapter/EnvConstAdapter.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Exception\\ExceptionInterface' not found in wp-content/plugins/skynet-shipping/includes/vendor/vlucas/phpdotenv/src/Exception/InvalidFileException.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/skynet-shipping/includes/functions.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\AdapterInterface' not found in wp-content/plugins/skynet-shipping/includes/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\ReaderInterface' not found in wp-content/plugins/skynet-shipping/includes/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Settings section.), #2 (The output at Checkout page.)
skynet-shipping/woocommerce-skynet-plugin.php 92% from 13 tests
"SkyNet Shipping WooCommerce Plugin" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("skynet-shipping.php" instead of "woocommerce-skynet-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin8,812 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 77 | 1,218 | 2,638 | 8,028 |
JSON | 7 | 0 | 0 | 732 |
Markdown | 3 | 13 | 0 | 36 |
make | 1 | 7 | 0 | 16 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 8.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 2 | 3.57% |
▷ Concrete classes | 54 | 96.43% |
▷ Final classes | 40 | 74.07% |
Methods | 412 | |
▷ Static methods | 136 | 33.01% |
▷ Public methods | 362 | 87.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 50 | 12.14% |
Functions | 170 | |
▷ Named functions | 119 | 70.00% |
▷ Anonymous functions | 51 | 30.00% |
Constants | 29 | |
▷ Global constants | 9 | 31.03% |
▷ Class constants | 20 | 68.97% |
▷ Public constants | 9 | 45.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin