10% eawo-profile-widget-dockerhub

Code Review | EaWo Profile Widget Docker Hub

WordPress plugin EaWo Profile Widget Docker Hub scored 10% from 54 tests.

About plugin

  • Plugin page: eawo-profile-widg...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 5.8.1
  • First release: Mar 5, 2017
  • Latest release: Mar 7, 2017
  • Number of updates: 9
  • Update frequency: every 29.1 days
  • Top authors: eamonwoortman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 614 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /1.82 ▼0.904.75 ▼18.98
Dashboard /wp-admin1.84 ▼1.226.06 ▼46.44
Posts /wp-admin/edit.php1.84 ▼1.275.39 ▼45.48
Add New Post /wp-admin/post-new.php1.84 ▼3.5910.52 ▼821.07
Media Library /wp-admin/upload.php1.84 ▼1.175.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲10915.93 ▲0.488.65 ▼1.5057.92 ▲3.67
Dashboard /wp-admin2,973 ▲396.04 ▲0.10144.84 ▼3.25112.88 ▼9.07
Posts /wp-admin/edit.php2,736 ▼32.70 ▲0.0170.32 ▲0.6595.96 ▲10.19
Add New Post /wp-admin/post-new.php1,581 ▲8317.48 ▼1.40467.51 ▲86.20127.17 ▲13.06
Media Library /wp-admin/upload.php1,807 ▲595.00 ▲0.01157.40 ▼2.67131.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP14987249
CSS1370171
Markdown119045
SVG3003

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 code0.24
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods444.44%
▷ Protected methods00.00%
▷ Private methods555.56%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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