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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.31ms] Passed 4 tests
A check of server-side resources used by Droppa Shipping WooCommerce Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.33 ▼6.13 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.19 ▼8.28 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 57.43 ▲7.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.24 ▼9.21 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.12 ▼1.60 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 97 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Droppa Shipping WooCommerce Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.73 ▲0.05 | 1.88 ▲0.07 | 41.78 ▼6.27 |
Dashboard /wp-admin | 2,206 ▲18 | 5.80 ▲0.88 | 104.16 ▼7.21 | 42.38 ▼0.57 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 1.98 ▼0.01 | 39.03 ▲0.15 | 36.68 ▲2.74 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.39 ▼0.01 | 660.35 ▼17.72 | 62.87 ▲12.58 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.26 ▲0.05 | 102.64 ▼2.52 | 49.86 ▲4.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 26× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GrahamCampbell\\ResultType\\Result' not found in wp-content/plugins/droppa-shipping/includes/vendor/graham-campbell/result-type/src/Success.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Parser\\ParserInterface' not found in wp-content/plugins/droppa-shipping/includes/vendor/vlucas/phpdotenv/src/Parser/Parser.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\RepositoryInterface' not found in wp-content/plugins/droppa-shipping/includes/vendor/vlucas/phpdotenv/src/Repository/AdapterRepository.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\ReaderInterface' not found in wp-content/plugins/droppa-shipping/includes/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/droppa-shipping/includes/functions.php:17
- > PHP Fatal error
Uncaught Error: Class 'PhpOption\\Option' not found in wp-content/plugins/droppa-shipping/includes/vendor/phpoption/phpoption/src/PhpOption/None.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\AdapterInterface' not found in wp-content/plugins/droppa-shipping/includes/vendor/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\WriterInterface' not found in wp-content/plugins/droppa-shipping/includes/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiWriter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Exception\\ExceptionInterface' not found in wp-content/plugins/droppa-shipping/includes/vendor/vlucas/phpdotenv/src/Exception/InvalidFileException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\WriterInterface' not found in wp-content/plugins/droppa-shipping/includes/vendor/vlucas/phpdotenv/src/Repository/Adapter/GuardedWriter.php:7
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: courier, shipping
droppa-shipping/woocommerce-droppa-plugin.php 92% from 13 tests
The main PHP script in "Droppa Shipping WooCommerce Plugin" version 1.0.7 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("droppa-shipping.php" instead of "woocommerce-droppa-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected8,252 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 77 | 1,173 | 2,576 | 7,468 |
JSON | 7 | 0 | 0 | 732 |
Markdown | 3 | 13 | 0 | 36 |
make | 1 | 7 | 0 | 16 |
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.47 |
Average class complexity | 9.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 40 | 76.92% |
Methods | 386 | |
▷ Static methods | 136 | 35.23% |
▷ Public methods | 336 | 87.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 50 | 12.95% |
Functions | 166 | |
▷ Named functions | 115 | 69.28% |
▷ Anonymous functions | 51 | 30.72% |
Constants | 30 | |
▷ Global constants | 10 | 33.33% |
▷ Class constants | 20 | 66.67% |
▷ Public constants | 9 | 45.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin