90% stand-with-ukraine

Code Review | Stand With Ukraine

WordPress plugin Stand With Ukraine scored90%from 54 tests.

About plugin

  • Plugin page: stand-with-ukraine
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Mar 7, 2022
  • Latest release: Mar 8, 2022
  • Number of updates: 14
  • Update frequency: every 0.3 days
  • Top authors: psykro (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

40+ active /812 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.01MB] [CPU: ▼4.52ms] Passed 4 tests

A check of server-side resources used by Stand With Ukraine
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.34 ▲0.54
Dashboard /wp-admin3.32 ▲0.0145.49 ▲3.32
Posts /wp-admin/edit.php3.37 ▲0.0144.64 ▼1.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.21 ▼20.90
Media Library /wp-admin/upload.php3.24 ▲0.0139.47 ▲5.61

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Stand With Ukraine
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.45 ▲0.152.10 ▲0.4141.90 ▲1.27
Dashboard /wp-admin2,209 ▲174.88 ▼0.0499.28 ▼6.8344.03 ▲3.96
Posts /wp-admin/edit.php2,092 ▲62.05 ▲0.0438.75 ▼1.4036.54 ▲1.39
Add New Post /wp-admin/post-new.php1,541 ▼118.39 ▲0.17644.39 ▲24.9452.76 ▲0.35
Media Library /wp-admin/upload.php1,388 ▲64.23 ▲0.00108.99 ▲6.3844.38 ▲0.79

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: standwithukraine

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

The principal PHP file in "Stand With Ukraine" v. 1.0.5 is loaded by WordPress automatically on each request
64 characters long description:
Displays a banner on your site to show your support for Ukraine.

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
Success! There were no dangerous files found in this plugin53 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP191646
JavaScript1007

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin