84% help-ukraine

Code Review | Help Ukraine

WordPress plugin Help Ukraine scored84%from 54 tests.

About plugin

  • Plugin page: help-ukraine
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 5, 2022
  • Latest release: Sep 5, 2023
  • Number of updates: 17
  • Update frequency: every 32.3 days
  • Top authors: ebinnion (58.82%)jeherve (47.06%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,233 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.37ms] Passed 4 tests

This is a short check of server-side resources used by Help Ukraine
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.09 ▼3.99
Dashboard /wp-admin3.32 ▼0.0347.93 ▼12.60
Posts /wp-admin/edit.php3.37 ▲0.0150.36 ▼1.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.50 ▼15.71
Media Library /wp-admin/upload.php3.24 ▲0.0140.71 ▲4.32
Help Ukraine /wp-admin/options-general.php?page=help-ukraine3.2031.08

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Help Ukraine
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.29 ▼1.015.89 ▲4.3340.84 ▼5.71
Dashboard /wp-admin2,207 ▲225.79 ▲0.85107.75 ▲5.4838.66 ▼5.11
Posts /wp-admin/edit.php2,096 ▲102.03 ▲0.0243.04 ▲1.1336.98 ▼1.66
Add New Post /wp-admin/post-new.php1,517 ▼1917.57 ▼5.71655.08 ▲47.5954.73 ▲3.89
Media Library /wp-admin/upload.php1,392 ▲74.21 ▲0.03103.97 ▲7.0844.73 ▲3.66
Help Ukraine /wp-admin/options-general.php?page=help-ukraine8582.0324.2638.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 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/help-ukraine/help-ukraine.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
1 plugin tags: ukraine

help-ukraine/help-ukraine.php Passed 13 tests

The entry point to "Help Ukraine" version 1.0.4 is a PHP file that has certain tags in its header comment area
125 characters long description:
A plugin to simplify adding a Help Ukraine banner, from the folks at https://helpukrainewinwidget.org/, to WordPress websites

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected283 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12819165
JavaScript1103118

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin