84% stand-ukraine

Code Review | Stand with Ukraine

WordPress plugin Stand with Ukraine scored84%from 54 tests.

About plugin

  • Plugin page: stand-ukraine
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Mar 6, 2022
  • Latest release: Mar 17, 2022
  • Number of updates: 11
  • Update frequency: every 22.3 days
  • Top authors: closemarketing (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,627 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Stand with Ukraine
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.53 ▲1.20
Dashboard /wp-admin3.31 ▲0.0053.12 ▼1.83
Posts /wp-admin/edit.php3.36 ▲0.0050.99 ▲1.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.63 ▼8.44
Media Library /wp-admin/upload.php3.23 ▲0.0033.40 ▼9.62

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Stand with Ukraine
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲3013.23 ▼1.151.90 ▼0.1743.47 ▼1.10
Dashboard /wp-admin2,224 ▲184.85 ▼0.03113.65 ▼2.6742.36 ▼3.23
Posts /wp-admin/edit.php2,103 ▼02.02 ▲0.0336.63 ▲0.2732.69 ▼4.10
Add New Post /wp-admin/post-new.php1,526 ▼517.58 ▼5.54666.18 ▲14.6155.55 ▲0.88
Media Library /wp-admin/upload.php1,403 ▼04.20 ▼0.0396.74 ▼9.0245.69 ▲1.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/stand-ukraine/stand-ukraine.php

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)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: Please take inspiration from this readme.txt

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

The principal PHP file in "Stand with Ukraine" v. 1.2 is loaded by WordPress automatically on each request
63 characters long description:
Shows a flag in the footer to show that you stand with Ukraine.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP133117

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin