84% find-a-covid-testing-center

Code Review | Find A Covid Test & Vaccine Center

WordPress plugin Find A Covid Test & Vaccine Center scored84%from 54 tests.

About plugin

  • Plugin page: find-a-covid-test...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Aug 27, 2020
  • Latest release: Nov 27, 2020
  • Number of updates: 64
  • Update frequency: every 1.4 days
  • Top authors: covidtestingcenters (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,638 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.04MB] [CPU: ▼5.48ms] Passed 4 tests

Server-side resources used by Find A Covid Test & Vaccine Center
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.48 ▼3.40
Dashboard /wp-admin3.35 ▲0.0147.81 ▼12.93
Posts /wp-admin/edit.php3.47 ▲0.1144.23 ▼5.51
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.00 ▼0.09
Media Library /wp-admin/upload.php3.28 ▲0.0433.80 ▲0.17
Covid Search Shortcodes /wp-admin/options-general.php?page=ctc-search-options3.2429.32

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Find A Covid Test & Vaccine Center
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.30 ▼1.354.20 ▲2.5639.23 ▼0.12
Dashboard /wp-admin2,210 ▲255.89 ▲0.03103.92 ▼1.0741.51 ▲1.82
Posts /wp-admin/edit.php2,093 ▲12.04 ▲0.0539.01 ▼4.3834.93 ▼4.76
Add New Post /wp-admin/post-new.php1,538 ▲422.85 ▼0.32592.92 ▼119.7357.82 ▼9.07
Media Library /wp-admin/upload.php1,389 ▲14.19 ▼0.0195.02 ▼1.1041.04 ▼4.54
Covid Search Shortcodes /wp-admin/options-general.php?page=ctc-search-options8992.0324.6628.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/find-a-covid-testing-center/public/includes/result-template.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/find-a-covid-testing-center/find-a-covid-testing-center.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/find-a-covid-testing-center/public/includes/shortcode.class.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/find-a-covid-testing-center/public/includes/assets.class.php:30

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: The official readme.txt might help

find-a-covid-testing-center/find-a-covid-testing-center.php Passed 13 tests

The main PHP file in "Find A Covid Test & Vaccine Center" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
120 characters long description:
Add Covid testing Centers Search To Your Website With A Shortcode. [ctc_search] , [ctc_live_search], [ctc_search_button]

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin744 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP998155300
CSS15015297
JavaScript24651147

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity2.33
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin