Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/eawo-profile-widget-dockerhub/eawo-profile-widget-dockerhub.php+32
Function create_function() is deprecated
Server metrics [RAM: ▼1.81MB] [CPU: ▼236.91ms] Passed 4 tests
An overview of server-side resources used by EaWo Profile Widget Docker Hub
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.82 ▼0.90 | 4.75 ▼18.98 |
Dashboard /wp-admin | 1.84 ▼1.22 | 6.06 ▼46.44 |
Posts /wp-admin/edit.php | 1.84 ▼1.27 | 5.39 ▼45.48 |
Add New Post /wp-admin/post-new.php | 1.84 ▼3.59 | 10.52 ▼821.07 |
Media Library /wp-admin/upload.php | 1.84 ▼1.17 | 5.78 ▼34.63 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_eawo_profile_widget_dockerhub |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EaWo Profile Widget Docker Hub
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,705 ▲109 | 15.93 ▲0.48 | 8.65 ▼1.50 | 57.92 ▲3.67 |
Dashboard /wp-admin | 2,973 ▲39 | 6.04 ▲0.10 | 144.84 ▼3.25 | 112.88 ▼9.07 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.70 ▲0.01 | 70.32 ▲0.65 | 95.96 ▲10.19 |
Add New Post /wp-admin/post-new.php | 1,581 ▲83 | 17.48 ▼1.40 | 467.51 ▲86.20 | 127.17 ▲13.06 |
Media Library /wp-admin/upload.php | 1,807 ▲59 | 5.00 ▲0.01 | 157.40 ▼2.67 | 131.77 ▼1.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/eawo-profile-widget-dockerhub/eawo-profile-widget-dockerhub.php+32
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 1 option in the database
- widget_eawo_profile_widget_dockerhub
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eawo-profile-widget-dockerhub/eawo-profile-widget-dockerhub.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: code, widget, profile, dockerhub
eawo-profile-widget-dockerhub/eawo-profile-widget-dockerhub.php Passed 13 tests
This is the main PHP file of "EaWo Profile Widget Docker Hub" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
Add a mini version of your DockerHub profile to a widget on a WordPress powered site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected468 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 49 | 87 | 249 |
CSS | 1 | 37 | 0 | 171 |
Markdown | 1 | 19 | 0 | 45 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 44.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 55.56% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin