90% covid-19-live-tracker

Code Review | Covid-19 Live Tracker

WordPress plugin Covid-19 Live Tracker scored90%from 54 tests.

About plugin

  • Plugin page: covid-19-live-tra...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4
  • WordPress version: 6.3.1
  • First release: Apr 23, 2020
  • Latest release: Jun 26, 2020
  • Number of updates: 3
  • Update frequency: every 21.3 days
  • Top authors: ianaleck (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,586 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.42ms] Passed 4 tests

An overview of server-side resources used by Covid-19 Live Tracker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.98 ▲1.94
Dashboard /wp-admin3.39 ▲0.0843.79 ▼0.79
Posts /wp-admin/edit.php3.44 ▲0.0846.40 ▼1.60
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.75 ▼6.16
Media Library /wp-admin/upload.php3.31 ▲0.0834.44 ▼1.12

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Covid-19 Live Tracker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲17013.83 ▼0.467.36 ▲5.7245.73 ▲0.65
Dashboard /wp-admin2,224 ▲354.84 ▼0.10109.08 ▼14.7451.04 ▲6.44
Posts /wp-admin/edit.php2,110 ▲242.04 ▼0.1239.23 ▲0.8150.81 ▲19.09
Add New Post /wp-admin/post-new.php1,529 ▲817.43 ▼5.58682.91 ▲43.0867.19 ▲8.96
Media Library /wp-admin/upload.php1,409 ▲214.23 ▲0.0197.84 ▼1.8153.10 ▲8.30

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: covid-19, live tracker, coronavirus live map, corona-virus, coronavirus...

covid-19-live-tracker/corona_virus_tracker.php 92% from 13 tests

The entry point to "Covid-19 Live Tracker" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("covid-19-live-tracker.php" instead of "corona_virus_tracker.php")

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 plugin1,425 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview 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.38
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions685.71%
▷ Anonymous functions114.29%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin