83% covid-19-corona-virus-live-stats-updates-lite

Code Review | COVID-19 Corona Virus Live Stats & Updates For WordPress Lite

WordPress plugin COVID-19 Corona Virus Live Stats & Updates For WordPress Lite scored83%from 54 tests.

About plugin

  • Plugin page: covid-19-corona-v...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.4
  • WordPress version: 6.3.1
  • First release: Apr 14, 2020
  • Latest release: Apr 23, 2020
  • Number of updates: 6
  • Update frequency: every 1.5 days
  • Top authors: khubbaib (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,901 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.95ms] Passed 4 tests

Analyzing server-side resources used by COVID-19 Corona Virus Live Stats & Updates For WordPress Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.07 ▼0.47
Dashboard /wp-admin3.37 ▲0.0746.52 ▼4.95
Posts /wp-admin/edit.php3.48 ▲0.1344.27 ▼1.77
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.83 ▼8.59
Media Library /wp-admin/upload.php3.29 ▲0.0636.48 ▲5.38

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 324 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

COVID-19 Corona Virus Live Stats & Updates For WordPress Lite: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16013.78 ▼0.9019.91 ▲17.9437.48 ▼5.03
Dashboard /wp-admin2,243 ▲555.02 ▲0.11105.95 ▼6.1073.19 ▲28.56
Posts /wp-admin/edit.php2,122 ▲332.30 ▲0.3035.89 ▲0.9134.47 ▼1.02
Add New Post /wp-admin/post-new.php1,550 ▲818.08 ▲0.22669.76 ▼13.3841.87 ▼10.31
Media Library /wp-admin/upload.php1,419 ▲284.35 ▲0.16101.11 ▼0.0578.03 ▲33.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/covid-19-corona-virus-live-stats-updates-lite/wss-covid19-templates/state-list.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/covid-19-corona-virus-live-stats-updates-lite/wss-covid19-templates/global-updates.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/covid-19-corona-virus-live-stats-updates-lite/wss-covid19-templates/country-updates.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/covid-19-corona-virus-live-stats-updates-lite/wss-covid19-templates/countries-list.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

covid-19-corona-virus-live-stats-updates-lite/wss-covid19-wp.php 62% from 13 tests

The main PHP script in "COVID-19 Corona Virus Live Stats & Updates For WordPress Lite" version 1.2 is automatically included on every request by WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 174 characters long)
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("lang")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("covid-19-corona-virus-live-stats-updates-lite.php" instead of "wss-covid19-wp.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path must begin with a forward slash character ("/lang")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin21,255 lines of code in 298 files:
LanguageFilesBlank linesComment linesLines of code
SVG2790129,803
CSS51,159259,547
JavaScript63261,0441,280
PHP8165179625

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity16.00
▷ Minimum class complexity10.00
▷ Maximum class complexity22.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/wss-covid19.png1.13KB1.16KB0.00%