Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▲1.06ms] Passed 4 tests
This is a short check of server-side resources used by Fraktjakt WooCommerce Shipping
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.32 | 43.23 ▲7.25 |
Dashboard /wp-admin | 3.65 ▲0.31 | 55.15 ▲7.27 |
Posts /wp-admin/edit.php | 3.76 ▲0.37 | 48.49 ▼0.65 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.33 | 91.13 ▼5.56 |
Media Library /wp-admin/upload.php | 3.57 ▲0.31 | 38.10 ▲3.20 |
Server storage [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Fraktjakt WooCommerce Shipping
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲141 | 14.00 ▼0.38 | 5.71 ▲3.78 | 59.44 ▲20.21 |
Dashboard /wp-admin | 2,210 ▲30 | 5.81 ▲0.80 | 101.27 ▼20.46 | 43.18 ▼7.74 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▼0.00 | 34.47 ▼4.77 | 34.53 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,518 ▼1 | 23.18 ▲0.28 | 603.22 ▲5.20 | 52.95 ▲4.94 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.22 ▲0.05 | 97.93 ▼3.49 | 44.89 ▲2.34 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/fraktjakt-shipping-for-woocommerce/fraktjakt-woocommerce-shipping.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/fraktjakt-shipping-for-woocommerce/fraktjakt-woocommerce-shipping.php:25
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/fraktjakt-shipping-for-woocommerce/fraktjakt-woocommerce-shipping.php on line 14
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/fraktjakt-shipping-for-woocommerce/fraktjakt-woocommerce-shipping.php on line 14
- > PHP Warning
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 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
fraktjakt-shipping-for-woocommerce/fraktjakt-woocommerce-shipping.php 85% from 13 tests
"Fraktjakt WooCommerce Shipping" version 2.5.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.2")
- Main file name: The principal plugin file should be the same as the plugin slug ("fraktjakt-shipping-for-woocommerce.php" instead of "fraktjakt-woocommerce-shipping.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
There were no executable files found in this plugin1,640 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 263 | 235 | 1,284 |
PO File | 1 | 114 | 136 | 324 |
CSS | 1 | 19 | 0 | 29 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 123.00 |
▷ Minimum class complexity | 123.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 18.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 26 | 96.30% |
▷ Anonymous functions | 1 | 3.70% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin