83% covid-19-alert

Code Review | COVID-19 (Coronavirus) Update Your Customers

WordPress plugin COVID-19 (Coronavirus) Update Your Customers scored83%from 54 tests.

About plugin

  • Plugin page: covid-19-alert
  • Plugin version: 1.5.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6.1
  • WordPress version: 6.3.1
  • First release: Mar 25, 2020
  • Latest release: May 21, 2021
  • Number of updates: 29
  • Update frequency: every 14.6 days
  • Top authors: devignstudiosltd (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

600+ active /13,418 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.86ms] Passed 4 tests

A check of server-side resources used by COVID-19 (Coronavirus) Update Your Customers
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.14 ▼1.18
Dashboard /wp-admin3.31 ▲0.0150.23 ▼1.62
Posts /wp-admin/edit.php3.37 ▲0.0148.99 ▼8.62
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.81 ▼14.28
Media Library /wp-admin/upload.php3.24 ▲0.0136.95 ▼2.91

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for COVID-19 (Coronavirus) Update Your Customers
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,977 ▲21613.60 ▼0.758.25 ▲6.6439.43 ▼2.44
Dashboard /wp-admin2,258 ▲815.71 ▲0.0587.97 ▼1.4562.17 ▲23.47
Posts /wp-admin/edit.php2,168 ▲682.26 ▲0.2938.31 ▲0.9734.47 ▼1.16
Add New Post /wp-admin/post-new.php1,579 ▲5323.25 ▼0.15741.19 ▲52.4435.05 ▼21.09
Media Library /wp-admin/upload.php1,463 ▲664.41 ▲0.23118.65 ▲13.5447.51 ▲0.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/covid-19-alert/inc/actions-filters.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/covid-19-alert/inc/activate.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/covid-19-alert/views/admin_covid_nineteen.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/covid-19-alert/covid-19-alert.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/covid-19-alert/inc/wp-enqueue.php:33

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% 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
These attributes need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add an image for screenshot #1 (Display a simple badge on your website to be clicked by users.)
  • Screenshots: Please a description for screenshot #6 in covid-19-alert/assets to your readme.txt
You can take inspiration from this readme.txt

covid-19-alert/covid-19-alert.php 85% from 13 tests

The primary PHP file in "COVID-19 (Coronavirus) Update Your Customers" version 1.5.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,501 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP6194105867
CSS24614551
SVG31244
JavaScript219539

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
4 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/GoogleIcon.png50.15KB18.04KB▼ 64.03%
assets/img/KofiCup.png11.01KB5.83KB▼ 47.09%
assets/img/Plugin-Password-Banner.png89.41KB38.44KB▼ 57.01%
assets/img/Plugin-Banner-Love.png44.98KB17.50KB▼ 61.09%