Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.27ms] Passed 4 tests
Analyzing server-side resources used by Calculation Shipping
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 44.24 ▲0.89 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.86 ▼6.50 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.94 ▼3.07 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 84.90 ▼16.41 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.91 ▲5.48 |
Calculation Shipping /wp-admin/options-general.php?page=calship-key-config | 3.26 | 36.18 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_calship |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
calship_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by Calculation Shipping
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲120 | 14.13 ▼0.14 | 18.25 ▲16.28 | 43.40 ▼0.35 |
Dashboard /wp-admin | 2,199 ▲19 | 4.84 ▼0.71 | 92.04 ▲0.66 | 38.90 ▼4.11 |
Posts /wp-admin/edit.php | 2,088 ▼12 | 2.30 ▲0.33 | 49.49 ▲11.53 | 34.66 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,529 ▲2 | 23.02 ▼0.16 | 658.28 ▲11.20 | 36.77 ▼16.66 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.50 ▲0.27 | 99.42 ▲0.91 | 43.12 ▼3.84 |
Calculation Shipping /wp-admin/options-general.php?page=calship-key-config | 1,035 | 2.77 | 56.18 | 37.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/calculation-shipping/cal-ship.php
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
6 plugin tags: carrier, envios, shipping, calculation shipping, calculator...
calculation-shipping/cal-ship.php 77% from 13 tests
The entry point to "Calculation Shipping" version 0.2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("calculation-shipping.php" instead of "cal-ship.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected401 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 67 | 58 | 232 |
JavaScript | 2 | 21 | 12 | 92 |
HTML | 2 | 14 | 0 | 53 |
CSS | 1 | 2 | 0 | 13 |
Markdown | 1 | 3 | 0 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 18 | 100.00% |
▷ Public methods | 13 | 72.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 27.78% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.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 are no PNG files in this plugin