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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.12 ▼35.92 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.04 ▼38.10 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.26 ▼40.77 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.81 ▼88.86 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.91 ▼31.01 |
WP Caregiver /wp-admin/options-general.php?page=wpcg_plugin_options | 2.05 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.34 ▼1.31 | 4.17 ▲2.40 | 37.01 ▼9.20 |
Dashboard /wp-admin | 2,210 ▲18 | 5.90 ▲0.96 | 105.91 ▼6.71 | 41.49 ▼6.58 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.04 | 39.19 ▼0.07 | 34.48 ▼0.63 |
Add New Post /wp-admin/post-new.php | 1,517 ▼17 | 17.77 ▼5.55 | 637.29 ▼40.47 | 44.98 ▼17.52 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.14 ▼0.07 | 98.95 ▼8.18 | 42.28 ▼3.74 |
WP Caregiver /wp-admin/options-general.php?page=wpcg_plugin_options | 1,050 | 3.03 | 44.10 | 49.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
- > PHP Fatal error
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 ("")
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 168 | 87 | 673 |
PO File | 1 | 68 | 140 | 155 |
JavaScript | 1 | 14 | 2 | 29 |
CSS | 1 | 5 | 0 | 23 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 47.50 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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