Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.58MB] [CPU: ▼1.91ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Fortnox Hub
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.59 | 44.80 ▼5.36 |
Dashboard /wp-admin | 3.89 ▲0.58 | 53.14 ▲3.22 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 51.62 ▲6.37 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.58 | 84.77 ▼8.38 |
Media Library /wp-admin/upload.php | 3.82 ▲0.58 | 39.16 ▲2.89 |
Server storage [IO: ▲1.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 154 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Fortnox Hub
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲10 | 14.27 ▼0.27 | 1.71 ▼0.41 | 42.97 ▼1.13 |
Dashboard /wp-admin | 2,196 ▲19 | 5.57 ▼0.07 | 85.18 ▼8.93 | 37.22 ▼0.44 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.02 | 34.83 ▼1.78 | 33.72 ▼1.32 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 18.58 ▼4.61 | 650.52 ▼46.60 | 69.94 ▲14.59 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.19 ▼0.01 | 100.09 ▲2.53 | 40.49 ▲0.22 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Automattic\\Jetpack\\Autoloader\\jp58711d225348eae0a9e8573b7a3a8c8f\\al2_12_0\\wp_normalize_path() in wp-content/plugins/woo-fortnox-hub/vendor/jetpack-autoloader/class-path-processor.php:73
- > PHP Fatal error
Uncaught Error: Interface 'Firebase\\JWT\\JWTExceptionWithPayloadInterface' not found in wp-content/plugins/woo-fortnox-hub/vendor/firebase/php-jwt/src/BeforeValidException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Firebase\\JWT\\JWTExceptionWithPayloadInterface' not found in wp-content/plugins/woo-fortnox-hub/vendor/firebase/php-jwt/src/ExpiredException.php:5
- > PHP Warning
require_once(wp-content/plugins/woo-fortnox-hub/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php): failed to open stream: No such file or directory in wp-content/plugins/woo-fortnox-hub/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/woo-fortnox-hub/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php:22
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/woo-fortnox-hub/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-fortnox-hub/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: integration, hub, accounting, paypal, zettle...
woo-fortnox-hub/woo-fortnox-hub.php 85% from 13 tests
Analyzing the main PHP file in "WooCommerce Fortnox Hub" version 5.6.5
Please take the time to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.9" instead of "4.0")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin19,426 lines of code in 147 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 4,669 | 4,558 | 17,825 |
Markdown | 5 | 291 | 0 | 813 |
JavaScript | 2 | 57 | 9 | 409 |
JSON | 4 | 1 | 0 | 258 |
CSS | 1 | 20 | 3 | 113 |
XML | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 21.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 170.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 122 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 122 | 100.00% |
▷ Final classes | 17 | 13.93% |
Methods | 902 | |
▷ Static methods | 156 | 17.29% |
▷ Public methods | 803 | 89.02% |
▷ Protected methods | 17 | 1.88% |
▷ Private methods | 82 | 9.09% |
Functions | 16 | |
▷ Named functions | 8 | 50.00% |
▷ Anonymous functions | 8 | 50.00% |
Constants | 35 | |
▷ Global constants | 13 | 37.14% |
▷ Class constants | 22 | 62.86% |
▷ Public constants | 13 | 59.09% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/BjornTech_logo_small.png | 84.40KB | 39.40KB | ▼ 53.32% |