Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/wemalo-api/plugin/WemaloAPIInstaller.php+5
require_once(wp-content/plugins/wemalo-api/plugin/../../woocommerce/packages/action-scheduler/action-scheduler.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.21ms] Passed 4 tests
Server-side resources used by Wemalo Connect
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 45.09 ▲3.12 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.07 ▼15.86 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.53 ▼4.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.74 ▼2.70 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.40 ▲2.39 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wemalo Connect
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.31 | 2.02 ▼0.11 | 47.07 ▼2.91 |
Dashboard /wp-admin | 2,206 ▲15 | 4.84 ▼0.07 | 99.61 ▼17.33 | 38.23 ▼5.74 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.07 | 33.23 ▼3.21 | 35.62 ▲1.13 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 23.35 ▲0.38 | 628.91 ▼31.07 | 49.56 ▼14.38 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.08 | 98.05 ▲0.03 | 44.07 ▲0.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(wp-content/plugins/wemalo-api/plugin/../../woocommerce/packages/action-scheduler/action-scheduler.php): failed to open stream: No such file or directory in wp-content/plugins/wemalo-api/plugin/WemaloAPIInstaller.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/wemalo-api/plugin/../../woocommerce/packages/action-scheduler/action-scheduler.php' (include_path='.:/usr/share/php') in wp-content/plugins/wemalo-api/plugin/WemaloAPIInstaller.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wemalo-api/WemaloAPI.php:32
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/wemalo-api/plugin/../../woocommerce/packages/action-scheduler/action-scheduler.php' (include_path='.:/usr/share/php') in wp-content/plugins/wemalo-api/plugin/WemaloAPIInstaller.php on line 5
- > PHP Warning
require_once(wp-content/plugins/wemalo-api/plugin/../../woocommerce/packages/action-scheduler/action-scheduler.php): failed to open stream: No such file or directory in wp-content/plugins/wemalo-api/plugin/WemaloAPIInstaller.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/wemalo-api/pages/return_template.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wemalo-api/pages/wemaloplugin_configHTML.php:12
- > PHP Warning
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: warehouse management, lagerverwaltung, fulfillment, wemalo
wemalo-api/WemaloAPI.php 85% from 13 tests
Analyzing the main PHP file in "Wemalo Connect" version 2.1.25
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wemalo-api.php" instead of "WemaloAPI.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.4.0" instead of "3.0.0")
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
There were no executable files found in this plugin3,887 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 353 | 1,207 | 3,615 |
JavaScript | 1 | 4 | 26 | 152 |
CSS | 1 | 16 | 0 | 115 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 32.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 197 | |
▷ Static methods | 1 | 0.51% |
▷ Public methods | 148 | 75.13% |
▷ Protected methods | 8 | 4.06% |
▷ Private methods | 41 | 20.81% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.69MB with 0.30MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 175.97KB | 75.70KB | ▼ 56.98% |
images/wemalo.png | 1.01KB | 0.80KB | ▼ 20.89% |
assets/icon-128x128.png | 7.80KB | 4.53KB | ▼ 41.94% |
assets/banner-1544x500.png | 518.43KB | 236.71KB | ▼ 54.34% |