10% yourcareeverywhere

Code Review | YourCareEverywhere Feed

WordPress plugin YourCareEverywhere Feed scored10%from 54 tests.

About plugin

  • Plugin page: yourcareeverywhere
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 31, 2017
  • Latest release: Dec 6, 2017
  • Number of updates: 3
  • Update frequency: every 12.3 days
  • Top authors: yourcareeverywhere (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /513 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/yourcareeverywhere/yce-feed.php+102
    Methods with the same name as their class will not be constructors in a future version of PHP; yce_feed_wp_plugin has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼52.55ms] Passed 4 tests

Server-side resources used by YourCareEverywhere Feed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.26 ▼38.63
Dashboard /wp-admin2.11 ▼1.196.63 ▼44.82
Posts /wp-admin/edit.php2.11 ▼1.245.78 ▼39.15
Add New Post /wp-admin/post-new.php2.11 ▼3.786.64 ▼87.59
Media Library /wp-admin/upload.php2.11 ▼1.125.58 ▼29.21

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

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

Browser metrics Passed 4 tests

YourCareEverywhere Feed: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.69 ▼0.891.80 ▲0.0837.39 ▼9.34
Dashboard /wp-admin2,219 ▲315.82 ▲0.9395.12 ▼12.0839.81 ▼5.96
Posts /wp-admin/edit.php2,102 ▲132.04 ▲0.0335.33 ▼2.7032.73 ▼1.16
Add New Post /wp-admin/post-new.php1,534 ▲1523.09 ▼0.28666.42 ▲43.3458.43 ▲12.13
Media Library /wp-admin/upload.php1,404 ▲164.27 ▲0.1194.19 ▼6.0341.00 ▲0.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/yourcareeverywhere/yce-feed.php+102
    Methods with the same name as their class will not be constructors in a future version of PHP; yce_feed_wp_plugin has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_yce_feed_wp_plugin
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/yourcareeverywhere/includes/widget.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: before_widget in wp-content/plugins/yourcareeverywhere/includes/widget.php on line 2
    • > PHP Notice
      Undefined variable: after_widget in wp-content/plugins/yourcareeverywhere/includes/widget.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/yourcareeverywhere/includes/admin_settings.php:6

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 96% from 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: yourcareeverywhere, feed, plugin, medhost

yourcareeverywhere/yce-feed.php 92% from 13 tests

The principal PHP file in "YourCareEverywhere Feed" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yourcareeverywhere.php" instead of "yce-feed.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected240 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP53044209
CSS11031

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.50
▷ Minimum class complexity3.00
▷ Maximum class complexity4.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin