10% show-weather-get-msn-com

Code Review | Show weather get msn.com

WordPress plugin Show weather get msn.com scored10%from 54 tests.

About plugin

  • Plugin page: show-weather-get-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Jul 9, 2017
  • Latest release: Mar 2, 2019
  • Number of updates: 10
  • Update frequency: every 60.1 days
  • Top authors: huynhoanganh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /912 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/show-weather-get-msn-com/wqn_weather_msn.php+23
    Methods with the same name as their class will not be constructors in a future version of PHP; wqn_weather_Widget has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼54.46ms] Passed 4 tests

This is a short check of server-side resources used by Show weather get msn.com
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.34 ▼34.63
Dashboard /wp-admin2.10 ▼1.255.89 ▼56.18
Posts /wp-admin/edit.php2.10 ▼1.268.41 ▼39.42
Add New Post /wp-admin/post-new.php2.10 ▼3.796.02 ▼87.62
Media Library /wp-admin/upload.php2.10 ▼1.145.44 ▼28.48

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Show weather get msn.com
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.22 ▼1.581.79 ▲0.0741.55 ▲0.47
Dashboard /wp-admin2,206 ▲215.83 ▲0.95102.76 ▼6.1739.94 ▼2.77
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0338.16 ▲1.2436.83 ▲2.66
Add New Post /wp-admin/post-new.php1,533 ▲1423.09 ▼0.11684.99 ▼2.7458.81 ▼0.27
Media Library /wp-admin/upload.php1,382 ▼64.18 ▼0.0199.00 ▼6.8440.92 ▼5.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/show-weather-get-msn-com/wqn_weather_msn.php+23
    Methods with the same name as their class will not be constructors in a future version of PHP; wqn_weather_Widget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_weather_widget_id
    • widget_recent-posts

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

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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

show-weather-get-msn-com/wqn_weather_msn.php 92% from 13 tests

"Show weather get msn.com" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("show-weather-get-msn-com.php" instead of "wqn_weather_msn.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,529 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32332951,423
CSS163106

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity109.33
▷ Minimum class complexity1.00
▷ Maximum class complexity197.00
Average method complexity4.65
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods89
▷ Static methods11.12%
▷ Public methods7382.02%
▷ Protected methods1617.98%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin