78% symptoma-covid19

Code Review | Coronavirus (COVID-19) Symptom Checker by Symptoma

WordPress plugin Coronavirus (COVID-19) Symptom Checker by Symptoma scored78%from 54 tests.

About plugin

  • Plugin page: symptoma-covid19
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.6
  • WordPress version: 6.3.1
  • First release: Apr 20, 2020
  • Latest release: Dec 14, 2020
  • Number of updates: 13
  • Update frequency: every 18.5 days
  • Top authors: symptoma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,828 total downloads

Benchmarks

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.02MB] [CPU: ▼5.63ms] Passed 4 tests

A check of server-side resources used by Coronavirus (COVID-19) Symptom Checker by Symptoma
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.52 ▲2.38
Dashboard /wp-admin3.32 ▲0.0247.75 ▼8.22
Posts /wp-admin/edit.php3.37 ▲0.0245.71 ▼4.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.82 ▼10.22
Media Library /wp-admin/upload.php3.25 ▲0.0238.23 ▼0.08

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Coronavirus (COVID-19) Symptom Checker by Symptoma
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲17214.54 ▼0.0210.22 ▲8.5368.29 ▲23.99
Dashboard /wp-admin2,210 ▲335.56 ▼0.0487.41 ▼14.4673.14 ▲26.40
Posts /wp-admin/edit.php2,115 ▲121.97 ▼0.0538.58 ▼1.4733.58 ▼0.44
Add New Post /wp-admin/post-new.php1,553 ▲2723.14 ▼0.36775.53 ▲82.9057.85 ▼2.59
Media Library /wp-admin/upload.php1,409 ▲124.16 ▼0.0493.91 ▼17.9371.19 ▲21.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/symptoma-covid19/views/inlinechat-shortcode-view.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/symptoma-covid19/views/settings-view.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/symptoma-covid19/views/footer-hook-view.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/symptoma-covid19/class-symptoma-covid19-admin.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

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
5 plugin tags: symptom checker, coronavirus, symptoma, chatbot, covid-19

symptoma-covid19/class-symptoma-covid19-admin.php 92% from 13 tests

The primary PHP file in "Coronavirus (COVID-19) Symptom Checker by Symptoma" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("symptoma-covid19.php" instead of "class-symptoma-covid19-admin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin308 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File44040184
PHP4221078
Markdown126035
SVG10111

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo.png0.39KB0.48KB0.00%