84% coronavirus-covid-19-notice-message

Code Review | Coronavirus (COVID-19) Notice Message

WordPress plugin Coronavirus (COVID-19) Notice Message scored84%from 54 tests.

About plugin

  • Plugin page: coronavirus-covid...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8.3
  • WordPress version: 6.3.1
  • First release: Apr 1, 2020
  • Latest release: Feb 9, 2022
  • Number of updates: 21
  • Update frequency: every 32.4 days
  • Top authors: gallagherwebsitedesign (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

700+ active /8,460 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: ▼3.58ms] Passed 4 tests

A check of server-side resources used by Coronavirus (COVID-19) Notice Message
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.86 ▼0.42
Dashboard /wp-admin3.32 ▲0.0147.94 ▼5.17
Posts /wp-admin/edit.php3.37 ▲0.0148.29 ▼0.38
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.45 ▼8.36
Media Library /wp-admin/upload.php3.24 ▲0.0137.27 ▲2.72

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Coronavirus (COVID-19) Notice Message
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲11313.49 ▼1.151.96 ▲0.2842.56 ▲1.96
Dashboard /wp-admin2,254 ▲665.13 ▼0.80111.91 ▲11.2838.49 ▼4.22
Posts /wp-admin/edit.php2,139 ▲472.34 ▲0.2941.21 ▲0.9537.48 ▲1.38
Add New Post /wp-admin/post-new.php1,541 ▼117.63 ▼0.60695.98 ▲94.5937.52 ▼15.39
Media Library /wp-admin/upload.php1,433 ▲454.40 ▲0.1399.76 ▲1.6546.26 ▼0.94

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coronavirus-covid-19-notice-message/coronavirus-covid-19-notice-message.php:42

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: covid-19, coronavirus banner, corona virus, coronavirus, coronavirus message...

coronavirus-covid-19-notice-message/coronavirus-covid-19-notice-message.php 92% from 13 tests

"Coronavirus (COVID-19) Notice Message" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected282 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1952248
JavaScript21922
CSS10012

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.68
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/location-top.png1.49KB0.37KB▼ 75.18%
images/location-top-static.png1.68KB0.45KB▼ 73.00%
images/location-bottom.png1.50KB0.37KB▼ 75.39%
images/location-inline.png1.53KB0.42KB▼ 72.90%
images/location-bottom-static.png1.71KB0.46KB▼ 73.15%