Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-birthday-users/widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; BirthdayUsersWidget has a deprecated constructor
Server metrics [RAM: ▼1.74MB] [CPU: ▼57.44ms] Passed 4 tests
A check of server-side resources used by WP Birthday Users
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.25 ▼1.21 | 5.78 ▼40.39 |
Dashboard /wp-admin | 2.28 ▼1.03 | 6.45 ▼46.47 |
Posts /wp-admin/edit.php | 2.28 ▼1.08 | 7.68 ▼39.23 |
Add New Post /wp-admin/post-new.php | 2.28 ▼3.62 | 6.90 ▼103.68 |
Media Library /wp-admin/upload.php | 2.28 ▼0.96 | 7.81 ▼26.17 |
Users Birthdays /wp-admin/users.php?page=wp-birthday-users/wp-birthday-users.php | 2.35 | 6.59 |
Birthdays Options /wp-admin/options-general.php?page=wp-birthday-users/config.php | 2.28 | 8.99 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_birthdayuserswidget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Birthday Users: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.66 ▼0.69 | 9.47 ▲7.64 | 47.10 ▲3.63 |
Dashboard /wp-admin | 2,220 ▲40 | 5.60 ▼0.04 | 91.16 ▼2.69 | 40.00 ▲1.03 |
Posts /wp-admin/edit.php | 2,122 ▲25 | 2.11 ▲0.11 | 35.49 ▼0.63 | 32.71 ▼4.36 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 23.07 ▲0.05 | 631.69 ▲12.18 | 37.66 ▼11.51 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.31 ▲0.12 | 107.42 ▲0.89 | 43.31 ▼4.37 |
Users Birthdays /wp-admin/users.php?page=wp-birthday-users/wp-birthday-users.php | 902 | 1.77 | 25.81 | 29.17 |
Birthdays Options /wp-admin/options-general.php?page=wp-birthday-users/config.php | 959 | 1.80 | 25.75 | 27.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-birthday-users/widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; BirthdayUsersWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_birthdayuserswidget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-birthday-users/config.php
- > Deprecated in wp-content/plugins/wp-birthday-users/widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; BirthdayUsersWidget has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-birthday-users/config.php
- > Deprecated in wp-content/plugins/wp-birthday-users/widget.php+146
Function create_function() is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-birthday-users/config.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in BirthdayUsersWidget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-birthday-users/config.php
- > Notice in wp-content/plugins/wp-birthday-users/wp-birthday-users.php+30
Trying to access array offset on value of type bool
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-birthday-users/config.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/users.php?page=wp-birthday-users/wp-birthday-users.php
- > Notice in wp-content/plugins/wp-birthday-users/wp-birthday-users.php+47
Undefined index: rebuild
- > GET request to /wp-admin/users.php?page=wp-birthday-users/wp-birthday-users.php
- > Notice in wp-content/plugins/wp-birthday-users/wp-birthday-users.php+48
Undefined index: come
- > GET request to /wp-admin/users.php?page=wp-birthday-users/wp-birthday-users.php
- > Notice in wp-content/plugins/wp-birthday-users/wp-birthday-users.php+49
Undefined index: past
- 4 occurences, only the last one shown
- > GET request to /wp-admin/users.php?page=wp-birthday-users/wp-birthday-users.php
- > Warning in wp-content/plugins/wp-birthday-users/wp-birthday-users.php+104
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/users.php?page=wp-birthday-users/wp-birthday-users.php
- > Notice in wp-content/plugins/wp-birthday-users/wp-birthday-users.php+79
Undefined index: text
- > GET request to /wp-admin/users.php?page=wp-birthday-users/wp-birthday-users.php
- > Notice in wp-content/plugins/wp-birthday-users/wp-birthday-users.php+97
Undefined variable: upcoming
- > GET request to /wp-admin/users.php?page=wp-birthday-users/wp-birthday-users.php
- > Notice in wp-content/plugins/wp-birthday-users/wp-birthday-users.php+107
Undefined variable: passed
SRP 50% 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
- 2× 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/wp-birthday-users/wp-birthday-users.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-birthday-users/widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-birthday-users ===
) - Requires at least: Invalid version format
wp-birthday-users/wp-birthday-users.php Passed 13 tests
"WP Birthday Users" version 0.1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
33 characters long description:
Let users fill in there birthday.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,372 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 35 | 39 | 593 |
PO File | 4 | 175 | 180 | 408 |
CSS | 3 | 26 | 62 | 371 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 11.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
19 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/smoothness/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/birthday.png | 0.64KB | 0.61KB | ▼ 4.58% |
css/smoothness/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/birthday-passed.png | 0.61KB | 0.51KB | ▼ 17.36% |
images/present.png | 0.82KB | 0.84KB | 0.00% |