Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.98ms] Passed 4 tests
Server-side resources used by ShipTime: Discounted Shipping Rates
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.49 ▼3.42 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.54 ▼3.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.90 ▼3.01 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 102.82 ▲12.27 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.58 ▲1.66 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 97 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ShipTime: Discounted Shipping Rates
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.21 ▼1.54 | 4.36 ▲2.51 | 40.58 ▼1.34 |
Dashboard /wp-admin | 2,206 ▲20 | 4.87 ▼1.04 | 111.91 ▼5.35 | 44.49 ▼0.94 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.02 | 39.87 ▼4.91 | 34.14 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,514 ▼23 | 17.61 ▼5.44 | 693.05 ▲100.12 | 56.52 ▲10.96 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.03 | 97.48 ▼3.87 | 47.47 ▲2.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 28× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/shiptime-discount-shipping/app/vendor/symfony/polyfill-php80/PhpToken.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\ReaderInterface' not found in wp-content/plugins/shiptime-discount-shipping/app/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiReader.php:9
- > PHP Fatal error
Uncaught Error: Class 'GrahamCampbell\\ResultType\\Result' not found in wp-content/plugins/shiptime-discount-shipping/app/vendor/graham-campbell/result-type/src/Error.php:24
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/shiptime-discount-shipping/app/vendor/symfony/polyfill-mbstring/bootstrap80.php on line 15
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\AdapterInterface' not found in wp-content/plugins/shiptime-discount-shipping/app/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\AdapterInterface' not found in wp-content/plugins/shiptime-discount-shipping/app/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php:11
- > PHP Fatal error
Uncaught Error: Class 'PhpOption\\Option' not found in wp-content/plugins/shiptime-discount-shipping/app/vendor/phpoption/phpoption/src/PhpOption/LazyOption.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Exception\\ExceptionInterface' not found in wp-content/plugins/shiptime-discount-shipping/app/vendor/vlucas/phpdotenv/src/Exception/ValidationException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\ReaderInterface' not found in wp-content/plugins/shiptime-discount-shipping/app/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\WriterInterface' not found in wp-content/plugins/shiptime-discount-shipping/app/vendor/vlucas/phpdotenv/src/Repository/Adapter/ImmutableWriter.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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: woocommerce plugin, shipping, live shipping rates, discounted shipping, woocommerce live shipping...
shiptime-discount-shipping/shiptime-live-rates.php 77% from 13 tests
"ShipTime: Discounted Shipping Rates" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/lang")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("shiptime-discount-shipping.php" instead of "shiptime-live-rates.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
Success! There were no dangerous files found in this plugin8,226 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 77 | 1,100 | 2,625 | 7,418 |
JSON | 7 | 0 | 0 | 729 |
JavaScript | 1 | 3 | 0 | 42 |
Markdown | 3 | 13 | 0 | 37 |
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.51 |
Average class complexity | 8.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 40 | 76.92% |
Methods | 362 | |
▷ Static methods | 125 | 34.53% |
▷ Public methods | 304 | 83.98% |
▷ Protected methods | 1 | 0.28% |
▷ Private methods | 57 | 15.75% |
Functions | 180 | |
▷ Named functions | 125 | 69.44% |
▷ Anonymous functions | 55 | 30.56% |
Constants | 34 | |
▷ Global constants | 9 | 26.47% |
▷ Class constants | 25 | 73.53% |
▷ Public constants | 13 | 52.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin