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.03MB] [CPU: ▼8.54ms] Passed 4 tests
Server-side resources used by Pósturinn\'s Shipping with WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 25.16 ▼11.23 |
Dashboard /wp-admin | 3.36 ▲0.02 | 49.73 ▼6.83 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 44.94 ▼1.06 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.55 ▼12.14 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.22 ▼3.94 |
Server storage [IO: ▲4.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 295 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Pósturinn\'s Shipping with WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,454 ▼307 | 14.26 ▼0.30 | 0.55 ▼1.14 | 17.56 ▼20.55 |
Dashboard /wp-admin | 2,195 ▲14 | 5.63 ▼0.08 | 82.00 ▼17.61 | 37.53 ▼4.56 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.04 | 33.04 ▼2.53 | 31.51 ▼4.80 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.73 ▲0.64 | 629.23 ▼47.01 | 65.79 ▲12.81 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▼0.13 | 97.79 ▼8.20 | 45.43 ▲0.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 84× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/posturinn/lib/fpdi/vendor/tecnickcom/tcpdf/examples/example_042.php
- > /wp-content/plugins/posturinn/lib/fpdi/vendor/tecnickcom/tcpdf/examples/example_036.php
- > /wp-content/plugins/posturinn/lib/fpdi/vendor/tecnickcom/tcpdf/examples/example_012.php
- > /wp-content/plugins/posturinn/lib/fpdi/vendor/tecnickcom/tcpdf/examples/example_055.php
- > /wp-content/plugins/posturinn/lib/fpdi/vendor/tecnickcom/tcpdf/examples/barcodes/example_2d_datamatrix_png.php
- > /wp-content/plugins/posturinn/lib/fpdi/vendor/tecnickcom/tcpdf/examples/example_061.php
- > /wp-content/plugins/posturinn/lib/fpdi/vendor/tecnickcom/tcpdf/examples/barcodes/example_2d_datamatrix_html.php
- > /wp-content/plugins/posturinn/inc/api.class.php
- > /wp-content/plugins/posturinn/lib/fpdi/vendor/tecnickcom/tcpdf/examples/example_046.php
- > /wp-content/plugins/posturinn/lib/fpdi/vendor/tecnickcom/tcpdf/examples/example_004.php
- 35× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'setasign\\Fpdi\\PdfParser\\Filter\\FilterInterface' not found in wp-content/plugins/posturinn/lib/fpdi/vendor/setasign/fpdi/src/PdfParser/Filter/Lzw.php:17
- > PHP Fatal error
Uncaught Error: Class 'TCPDF' not found in wp-content/plugins/posturinn/lib/fpdi/vendor/setasign/fpdi/src/Tcpdf/Fpdi.php:25
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/posturinn/lib/fpdi/vendor/setasign/fpdi/src/FpdfTpl.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function postis_get_settings() in wp-content/plugins/posturinn/inc/checkout-fields.class.php:15
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/posturinn/lib/fpdi/vendor/setasign/fpdi/src/PdfParser/Type/PdfHexString.php:19
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\CrossReference\\AbstractReader' not found in wp-content/plugins/posturinn/lib/fpdi/vendor/setasign/fpdi/src/PdfParser/CrossReference/LineReader.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function bcadd() in wp-content/plugins/posturinn/lib/fpdi/vendor/tecnickcom/tcpdf/tcpdf_barcodes_1d.php:2081
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\CrossReference\\AbstractReader' not found in wp-content/plugins/posturinn/lib/fpdi/vendor/setasign/fpdi/src/PdfParser/CrossReference/FixedReader.php:23
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\PdfParserException' not found in wp-content/plugins/posturinn/lib/fpdi/vendor/setasign/fpdi/src/PdfParser/Type/PdfTypeException.php:19
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/posturinn/lib/fpdi/vendor/setasign/fpdi/src/PdfParser/Type/PdfDictionary.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: shipping rates, icelandic post shipping, woocommerce, posturinn, shipping
posturinn/wc-posturinn-shipping-api.php 85% from 13 tests
The main PHP script in "Pósturinn\'s Shipping with WooCommerce" version 1.1.7 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("posturinn.php" instead of "wc-posturinn-shipping-api.php")
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
These items require your attention
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/posturinn/lib/fpdi/vendor/tecnickcom/tcpdf/examples/data/cert/tcpdf.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 228 | 5,982 | 20,676 | 57,374 |
SVG | 3 | 1 | 1 | 1,882 |
PO File | 3 | 418 | 403 | 894 |
CSS | 3 | 156 | 66 | 608 |
JavaScript | 4 | 194 | 219 | 585 |
JSON | 8 | 0 | 0 | 368 |
Markdown | 4 | 71 | 0 | 247 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 4,382)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 502)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 93.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,382.00 |
Average method complexity | 8.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 502.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 75 | |
▷ Abstract classes | 2 | 2.67% |
▷ Concrete classes | 73 | 97.33% |
▷ Final classes | 0 | 0.00% |
Methods | 1,028 | |
▷ Static methods | 157 | 15.27% |
▷ Public methods | 709 | 68.97% |
▷ Protected methods | 313 | 30.45% |
▷ Private methods | 6 | 0.58% |
Functions | 63 | |
▷ Named functions | 53 | 84.13% |
▷ Anonymous functions | 10 | 15.87% |
Constants | 178 | |
▷ Global constants | 141 | 79.21% |
▷ Class constants | 37 | 20.79% |
▷ Public constants | 37 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.56MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/fpdi/vendor/tecnickcom/tcpdf/examples/images/_blank.png | 0.13KB | 0.09KB | ▼ 30.66% |
lib/fpdi/vendor/tecnickcom/tcpdf/examples/images/img.png | 190.57KB | 64.69KB | ▼ 66.06% |
lib/fpdi/vendor/tecnickcom/tcpdf/examples/images/tcpdf_cell.png | 37.51KB | 36.62KB | ▼ 2.39% |
lib/fpdi/vendor/tecnickcom/tcpdf/examples/images/logo_example.png | 18.96KB | 17.68KB | ▼ 6.71% |
lib/fpdi/vendor/tecnickcom/tcpdf/examples/images/alpha.png | 23.33KB | 30.34KB | 0.00% |