99% corona-virus-live-ticker

Code Review | Corona Virus Live Ticker

WordPress plugin Corona Virus Live Ticker scored 99% from 54 tests.

About plugin

  • Plugin page: corona-virus-live...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7
  • WordPress version: 5.8.1
  • First release: Jan 6, 2021
  • Latest release: Apr 1, 2021
  • Number of updates: 6
  • Update frequency: every 14.3 days
  • Top authors: ptmbg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 255 total downloads

Benchmarks

Plugin footprint Passed 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.24MB] [CPU: ▼139.95ms] Passed 4 tests

Server-side resources used by Corona Virus Live Ticker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲1.11662.20 ▲641.13
Dashboard /wp-admin3.31 ▲0.2534.37 ▼8.21
Posts /wp-admin/edit.php3.36 ▲0.2544.39 ▼0.06
Add New Post /wp-admin/post-new.php5.66 ▲0.2288.51 ▼555.14
Media Library /wp-admin/upload.php3.25 ▲0.2435.85 ▲3.62
Corona Virus Live Ticker /wp-admin/options-general.php?page=ptmbg_corona_virus_info3.2833.15

Server storage [IO: ▲0.06MB] [DB: ▲0.09MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 2 new options
New WordPress options
ptmbg_covid_info_data
ptmbg_covid_info_options

Browser metrics Passed 4 tests

Checking browser requirements for Corona Virus Live Ticker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /10,589 ▲6,99316.91 ▲1.1727.91 ▲17.2076.33 ▲28.26
Dashboard /wp-admin3,014 ▲805.91 ▼0.18139.70 ▼0.53133.36 ▲19.30
Posts /wp-admin/edit.php2,789 ▲502.73 ▲0.0165.05 ▲2.16104.02 ▲6.37
Add New Post /wp-admin/post-new.php1,896 ▲39819.00 ▲0.22361.42 ▼17.44104.41 ▼7.92
Media Library /wp-admin/upload.php1,855 ▲485.03 ▲0.02150.39 ▲7.69117.80 ▲0.47
Corona Virus Live Ticker /wp-admin/options-general.php?page=ptmbg_corona_virus_info5,6092.5669.2592.38

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
These attributes need to be fixed: You can take inspiration from this readme.txt

corona-virus-live-ticker/index.php 92% from 13 tests

The principal PHP file in "Corona Virus Live Ticker" v. 1.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("corona-virus-live-ticker.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,285 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP268311,274
JavaScript10411

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity114.00
▷ Minimum class complexity114.00
▷ Maximum class complexity114.00
Average method complexity7.28
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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