78% healthcare-review-master

Code Review | Healthcare Review Master

WordPress plugin Healthcare Review Master scored78%from 54 tests.

About plugin

  • Plugin page: healthcare-review...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2015
  • Latest release: Oct 8, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: devcon1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /966 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.37MB] [CPU: ▲0.83ms] Passed 4 tests

Analyzing server-side resources used by Healthcare Review Master
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4140.16 ▼2.77
Dashboard /wp-admin3.70 ▲0.4053.89 ▲4.95
Posts /wp-admin/edit.php3.75 ▲0.3952.58 ▲5.36
Add New Post /wp-admin/post-new.php6.24 ▲0.3595.42 ▲1.19
Media Library /wp-admin/upload.php3.56 ▲0.3339.94 ▼0.06

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
hrm_num_show_zocdoc_review
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
hrm_zocdoc_review_interval
widget_recent-posts
hrm_zocdoc_review_speed

Browser metrics Passed 4 tests

Checking browser requirements for Healthcare Review Master
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲13813.49 ▼0.789.60 ▲7.7540.03 ▼7.60
Dashboard /wp-admin2,202 ▲255.54 ▼0.0795.08 ▲3.8875.35 ▲33.80
Posts /wp-admin/edit.php2,122 ▲222.00 ▲0.0338.01 ▼0.1134.21 ▼1.25
Add New Post /wp-admin/post-new.php1,544 ▲1822.91 ▼0.09686.85 ▼10.4360.69 ▲7.63
Media Library /wp-admin/upload.php1,410 ▲134.13 ▼0.1098.78 ▼7.3669.49 ▲22.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/healthcare-review-master/public/partials/healthcare-review-master-public-display.php
    • > /wp-content/plugins/healthcare-review-master/admin/partials/settings-section-general.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/healthcare-review-master/admin/partials/menu-hrm-main-settings.php:21

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

healthcare-review-master/healthcare-review-master.php 92% from 13 tests

The main file in "Healthcare Review Master" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 357 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,853 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP143368151,748
CSS216276
JavaScript33129

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity38.89
▷ Minimum class complexity1.00
▷ Maximum class complexity198.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods125
▷ Static methods32.40%
▷ Public methods10483.20%
▷ Protected methods1612.80%
▷ Private methods54.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.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
10 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/assets/2_0.png7.37KB2.04KB▼ 72.26%
public/assets/1_0.png7.31KB2.02KB▼ 72.37%
public/assets/5_0.png7.38KB2.08KB▼ 71.90%
public/assets/2_5.png7.58KB2.08KB▼ 72.53%
public/assets/4_5.png7.47KB2.09KB▼ 72.02%