77% wp-awesome-city-weather-report

Code Review | WP Awesome City Weather Report

WordPress plugin WP Awesome City Weather Report scored 77% from 54 tests.

About plugin

  • Plugin page: wp-awesome-city-w...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 5, 2016
  • Latest release: Aug 21, 2023
  • Number of updates: 10
  • Update frequency: every 260.4 days
  • Top authors: Litonice13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,484 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.21MB] [CPU: ▲1,096.65ms] 50% from 4 tests

A check of server-side resources used by WP Awesome City Weather Report
Please take the time to fix the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,275.94ms on /wp-admin/options-general.php?page=wp-awesome-city-weather-report-recommended-plugins)
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 1,096.65ms on /wp-admin/options-general.php?page=wp-awesome-city-weather-report-recommended-plugins)
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.20666.72 ▲622.93
Dashboard /wp-admin3.60 ▲0.301,538.70 ▲1,491.86
Posts /wp-admin/edit.php3.60 ▲0.241,290.63 ▲1,241.37
Add New Post /wp-admin/post-new.php6.06 ▲0.171,381.05 ▲1,282.24
Media Library /wp-admin/upload.php3.44 ▲0.211,272.25 ▲1,240.06
Recommended /wp-admin/options-general.php?page=wp-awesome-city-weather-report-recommended-plugins3.411,275.94

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 14 new options
New WordPress options
can_compress_scripts
widget_wp_awesome_city_weather_report_widget
jltctwr_sheet_promo_data_hash
jltctwr_notice_subscribe
wp_awesome_city_weather_report_version
widget_theysaidso_widget
db_upgraded
widget_recent-comments
jltctwr_activation_time
widget_recent-posts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Awesome City Weather Report
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲16813.30 ▼1.141.81 ▼0.2838.46 ▼3.06
Dashboard /wp-admin2,344 ▲1565.90 ▲1.02104.89 ▼6.9840.23 ▼8.00
Posts /wp-admin/edit.php2,182 ▲932.18 ▲0.1236.82 ▼4.5635.40 ▼2.99
Add New Post /wp-admin/post-new.php1,626 ▲9323.75 ▲0.65613.95 ▼8.7358.31 ▼0.07
Media Library /wp-admin/upload.php1,481 ▲994.23 ▲0.0496.86 ▼6.8742.66 ▼2.10
Recommended /wp-admin/options-general.php?page=wp-awesome-city-weather-report-recommended-plugins1,2561.8428.1731.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 14 options
    • widget_recent-comments
    • jltctwr_sheet_promo_data_hash
    • widget_theysaidso_widget
    • jltctwr_notice_subscribe
    • jltctwr_notice_what_we_collect
    • jltctwr_sheet_promo_data
    • widget_recent-posts
    • theysaidso_admin_options
    • wp_awesome_city_weather_report_version
    • jltctwr_activation_time
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'JLTCTWR\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/wp-awesome-city-weather-report/Inc/Classes/Notifications/What_We_Collect.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'JLTCTWR\\Libs\\Upgrader' not found in wp-content/plugins/wp-awesome-city-weather-report/Inc/Classes/Upgrade_Plugin.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-awesome-city-weather-report/wp-awesome-city-weather-report.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'JLTCTWR\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/wp-awesome-city-weather-report/Inc/Classes/Notifications/Subscribe.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'JLTCTWR\\Libs\\Recommended' not found in wp-content/plugins/wp-awesome-city-weather-report/Inc/Classes/Recommended_Plugins.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-awesome-city-weather-report/Inc/Classes/City_Weather_Report.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'JLTCTWR\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/wp-awesome-city-weather-report/Inc/Classes/Notifications/Ask_For_Rating.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTCTWR\\Inc\\Classes\otifications\\Model\\Popup' not found in wp-content/plugins/wp-awesome-city-weather-report/Inc/Classes/Notifications/Upgrade_Notice.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'JLTCTWR\\Libs\\RowLinks' not found in wp-content/plugins/wp-awesome-city-weather-report/Inc/Classes/Row_Links.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=wp-awesome-city-weather-report-recommended-plugins
    • > Network (severe)
    https://ps.w.org/ultimate-blocks-for-gutenberg/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: wordpress faq, wordpress plugin, wordpress, frequently asked questions

wp-awesome-city-weather-report/wp-awesome-city-weather-report.php 85% from 13 tests

The principal PHP file in "WP Awesome City Weather Report" v. 1.0.4 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages/")

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
Good job! No executable or dangerous file extensions detected3,308 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP398031,4943,159
CSS2223149
JavaScript1010

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.07
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits2
Classes28
▷ Abstract classes414.29%
▷ Concrete classes2485.71%
▷ Final classes14.17%
Methods197
▷ Static methods3216.24%
▷ Public methods19498.48%
▷ Protected methods10.51%
▷ Private methods21.02%
Functions9
▷ Named functions555.56%
▷ Anonymous functions444.44%
Constants16
▷ Global constants1593.75%
▷ Class constants16.25%
▷ Public constants1100.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 files were detected