89% covid-19-coronavirus-viral-pandemic-prediction-tools-free-version

Code Review | Coronavirus Spread Prediction Tools Free Version

WordPress plugin Coronavirus Spread Prediction Tools Free Version scored89%from 54 tests.

About plugin

  • Plugin page: covid-19-coronavi...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Feb 19, 2020
  • Latest release: Oct 29, 2022
  • Number of updates: 12
  • Update frequency: every 107.4 days
  • Top authors: coderevolution (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,678 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.28MB] [CPU: ▲0.44ms] Passed 4 tests

An overview of server-side resources used by Coronavirus Spread Prediction Tools Free Version
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2946.14 ▲0.92
Dashboard /wp-admin3.58 ▲0.2755.72 ▲2.08
Posts /wp-admin/edit.php3.69 ▲0.3356.60 ▼3.25
Add New Post /wp-admin/post-new.php6.18 ▲0.30101.12 ▲2.02
Media Library /wp-admin/upload.php3.50 ▲0.2747.11 ▲8.95

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Coronavirus Spread Prediction Tools Free Version
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲18214.19 ▼0.1615.40 ▲13.7444.14 ▲5.97
Dashboard /wp-admin2,216 ▲365.61 ▼0.0584.74 ▼11.5978.62 ▲34.60
Posts /wp-admin/edit.php2,121 ▲181.99 ▲0.0137.75 ▼2.3135.74 ▲0.59
Add New Post /wp-admin/post-new.php6,388 ▲4,85127.90 ▲9.68916.84 ▲289.82161.52 ▲93.16
Media Library /wp-admin/upload.php1,415 ▲154.12 ▼0.09103.12 ▼0.6275.65 ▲30.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • cspgf_Main_Settings
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 shallow check for browser errors
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: coronavirus, pandemic, modeling, covid-19, outbreak...

covid-19-coronavirus-viral-pandemic-prediction-tools-free-version/coronavirus-spread-prediction-graphs-free.php 85% from 13 tests

"Coronavirus Spread Prediction Tools Free Version" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("covid-19-coronavirus-viral-pandemic-prediction-tools-free-version.php" instead of "coronavirus-spread-prediction-graphs-free.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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin6,118 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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 functions2696.30%
▷ Anonymous functions13.70%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.49KB0.28KB▼ 42.63%