10% wp-caregiver

Code Review | WP Caregiver

WordPress plugin WP Caregiver scored10%from 54 tests.

About plugin

  • Plugin page: wp-caregiver
  • Plugin version: 0.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.7
  • WordPress version: 6.3.1
  • First release: Jul 6, 2013
  • Latest release: Nov 21, 2013
  • Number of updates: 18
  • Update frequency: every 7.7 days
  • Top authors: Blintux (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /2,493 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/wp-caregiver/wp-caregiver.php+588
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.91ms] Passed 4 tests

Analyzing server-side resources used by WP Caregiver
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.12 ▼35.92
Dashboard /wp-admin2.05 ▼1.266.04 ▼38.10
Posts /wp-admin/edit.php2.05 ▼1.315.26 ▼40.77
Add New Post /wp-admin/post-new.php2.05 ▼3.845.81 ▼88.86
Media Library /wp-admin/upload.php2.05 ▼1.184.91 ▼31.01
WP Caregiver /wp-admin/options-general.php?page=wpcg_plugin_options2.056.28

Server storage [IO: ▲0.10MB] [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: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

WP Caregiver: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.34 ▼1.314.17 ▲2.4037.01 ▼9.20
Dashboard /wp-admin2,210 ▲185.90 ▲0.96105.91 ▼6.7141.49 ▼6.58
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.0439.19 ▼0.0734.48 ▼0.63
Add New Post /wp-admin/post-new.php1,517 ▼1717.77 ▼5.55637.29 ▼40.4744.98 ▼17.52
Media Library /wp-admin/upload.php1,395 ▲74.14 ▼0.0798.95 ▼8.1842.28 ▼3.74
WP Caregiver /wp-admin/options-general.php?page=wpcg_plugin_options1,0503.0344.1049.61

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/wp-caregiver/wp-caregiver.php+588
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wpcg_plugin_options
    • > Deprecated in wp-content/plugins/wp-caregiver/wp-caregiver.php+588
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=wpcg_plugin_options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wpcg_plugin_options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-caregiver/wp-caregiver.php:588

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=wpcg_plugin_options
    • > Network (severe)
    https://button.flattr.com/flattr-badge-large.png - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (System information), #2 (Frontend options), #3 (Backend oprions)
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

wp-caregiver/wp-caregiver.php 92% from 13 tests

Analyzing the main PHP file in "WP Caregiver" version 0.3.0
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected880 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP316887673
PO File168140155
JavaScript114229
CSS15023

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity47.50
▷ Minimum class complexity36.00
▷ Maximum class complexity59.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods45
▷ Static methods00.00%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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 are no PNG files in this plugin