80% world-covid-19-stats

Code Review | World Covid 19 stats

WordPress plugin World Covid 19 stats scored80%from 54 tests.

About plugin

  • Plugin page: world-covid-19-stats
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.2
  • WordPress version: 6.3.1
  • First release: Jul 1, 2020
  • Latest release: Apr 5, 2023
  • Number of updates: 13
  • Update frequency: every 77.5 days
  • Top authors: viitorcloudvc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /555 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼1.96MB] [CPU: ▼55.82ms] Passed 4 tests

An overview of server-side resources used by World Covid 19 stats
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.02 ▼1.444.37 ▼36.52
Dashboard /wp-admin2.04 ▼1.265.61 ▼50.44
Posts /wp-admin/edit.php2.05 ▼1.315.64 ▼45.01
Add New Post /wp-admin/post-new.php2.05 ▼3.845.69 ▼91.29
Media Library /wp-admin/upload.php2.05 ▼1.185.53 ▼33.57

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for World Covid 19 stats
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.38 ▼0.212.05 ▲0.0143.79 ▼1.51
Dashboard /wp-admin2,197 ▲205.60 ▼0.0489.28 ▼4.0138.81 ▼3.61
Posts /wp-admin/edit.php2,102 ▼11.99 ▼0.0536.15 ▼5.1036.73 ▼2.87
Add New Post /wp-admin/post-new.php1,542 ▼1223.08 ▲4.92665.74 ▲34.1752.86 ▼1.20
Media Library /wp-admin/upload.php1,399 ▼14.20 ▼0.04100.48 ▼2.9345.75 ▼1.94

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
The following items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wd-cv19-st handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Requires php: Version not formatted correctly
The official readme.txt is a good inspiration

world-covid-19-stats/world-covid-19-stats.php Passed 13 tests

The main PHP file in "World Covid 19 stats" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
This plugin displays the Coronavirus case data of the whole world.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin200 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1100112
PHP3207188

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
PNG images were not found in this plugin