84% wp-covid-19-data

Code Review | WP COVID-19 DATA

WordPress plugin WP COVID-19 DATA scored84%from 54 tests.

About plugin

  • Plugin page: wp-covid-19-data
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Mar 25, 2020
  • Latest release: Apr 17, 2020
  • Number of updates: 10
  • Update frequency: every 2.4 days
  • Top authors: salimserdar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /6,016 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼5.40ms] Passed 4 tests

This is a short check of server-side resources used by WP COVID-19 DATA
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1139.95 ▼5.98
Dashboard /wp-admin3.41 ▲0.1050.23 ▼2.09
Posts /wp-admin/edit.php3.52 ▲0.1748.06 ▼4.34
Add New Post /wp-admin/post-new.php6.01 ▲0.1287.31 ▼9.20
Media Library /wp-admin/upload.php3.33 ▲0.1039.00 ▲0.49

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

WP COVID-19 DATA: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲11914.20 ▼0.1715.49 ▲13.3351.38 ▲6.68
Dashboard /wp-admin2,202 ▲255.50 ▼0.0989.90 ▲0.8738.25 ▼1.76
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0533.67 ▼6.6134.22 ▼2.59
Add New Post /wp-admin/post-new.php1,530 ▲422.91 ▼0.74673.06 ▲7.1160.38 ▲1.79
Media Library /wp-admin/upload.php1,404 ▲14.17 ▼0.06108.03 ▲0.1147.55 ▲0.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-covid-19-data/admin/partials/wp-covid-19-data-admin-display.php
    • > /wp-content/plugins/wp-covid-19-data/public/partials/wp-covid-19-data-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: covid-19, wp covid-19, covid-19 data, wordpress covid-19

wp-covid-19-data/wp-covid-19-data.php Passed 13 tests

This is the main PHP file of "WP COVID-19 DATA" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
This is the plugin to display COVID-19 data from around the world.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin642 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP13165603542
PO File2254983
Markdown16012
JavaScript22274
CSS2041

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2575.76%
▷ Protected methods00.00%
▷ Private methods824.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin