Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.74ms] Passed 4 tests
This is a short check of server-side resources used by Ship2Anywhere Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.71 ▼3.76 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.25 ▼1.47 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.90 ▼5.46 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.83 ▼8.25 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.10 ▼0.03 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Ship2Anywhere Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▲0.30 | 1.56 ▼0.31 | 41.79 ▼0.81 |
Dashboard /wp-admin | 2,208 ▲23 | 5.90 ▲0.11 | 107.79 ▲4.04 | 38.21 ▼3.59 |
Posts /wp-admin/edit.php | 2,091 ▼1 | 2.05 ▲0.06 | 42.99 ▲4.55 | 36.29 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 22.02 ▼1.25 | 669.02 ▲44.82 | 53.84 ▲6.62 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.21 ▼0.02 | 92.30 ▼10.19 | 41.76 ▼2.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/ship-2-anywhere/ship2anywhere.php+38
Non-static method Ship2Anywhere_Deactivator::deactivate() should not be called statically
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ship-2-anywhere/admin/partials/ship2anywhere-shop-order-custom-order-fields-partial.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ship-2-anywhere/admin/partials/ship2anywhere-custom-order-fields-partial.php:1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/ship-2-anywhere/admin/partials/ship2anywhere-shop-order-custom-order-fields-partial.php on line 2
- > PHP Notice
Undefined variable: order_fields in wp-content/plugins/ship-2-anywhere/admin/partials/ship2anywhere-shop-order-custom-order-fields-partial.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ship-2-anywhere/includes/ship2anywhere-config.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/ship-2-anywhere/includes/class-ship2anywhere-shipping-rules.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (16 tag instead of maximum 10)
ship-2-anywhere/ship2anywhere.php 92% from 13 tests
The main file in "Ship2Anywhere Plugin" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ship-2-anywhere.php" instead of "ship2anywhere.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,323 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 246 | 23 | 1,254 |
JavaScript | 2 | 9 | 1 | 69 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 8 | 8.99% |
▷ Public methods | 73 | 82.02% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 17.98% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin