10% cherkasy-weather

Code Review | Cherkasy Weather

WordPress plugin Cherkasy Weather scored10%from 54 tests.

About plugin

  • Plugin page: cherkasy-weather
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Dec 28, 2013
  • Latest release: Dec 28, 2013
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: karmeljuk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /969 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/cherkasy-weather/ck-weather.php+61
    simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.71ms] Passed 4 tests

This is a short check of server-side resources used by Cherkasy Weather
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0446.00 ▲1.06
Dashboard /wp-admin3.40 ▲0.10190.68 ▲141.51
Posts /wp-admin/edit.php3.38 ▲0.0250.64 ▲0.70
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.12 ▼16.72
Media Library /wp-admin/upload.php3.25 ▲0.0234.27 ▲0.14

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: 1 new table, 7 new options
New tables
wp_ck_weather
New WordPress options
ck_weather_db_version
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cherkasy Weather
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼1.102.00 ▲0.0946.15 ▼1.55
Dashboard /wp-admin2,206 ▲185.80 ▼0.05102.20 ▼17.5739.65 ▼4.70
Posts /wp-admin/edit.php2,092 ▼02.01 ▲0.0040.23 ▲2.5737.58 ▲2.48
Add New Post /wp-admin/post-new.php1,520 ▼023.40 ▲0.37660.33 ▼43.2253.82 ▼5.27
Media Library /wp-admin/upload.php1,385 ▼34.24 ▼0.10109.26 ▲4.6844.91 ▲0.45

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 successfully, leaving 1 table in the database
    • wp_ck_weather
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • ck_weather_db_version
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cherkasy-weather/ck-weather.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (This screen shot description corresponds to screenshot-1.jpg.) image required
You can look at the official readme.txt

cherkasy-weather/ck-weather.php 92% from 13 tests

The main file in "Cherkasy Weather" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("cherkasy-weather.php" instead of "ck-weather.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin86 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1472682
Markdown1304

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin