Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.83MB] [CPU: ▼33.66ms] Passed 4 tests
A check of server-side resources used by Jason Birthday Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 40.34 ▲4.89 |
Dashboard /wp-admin | 3.12 ▼0.19 | 24.28 ▼27.09 |
Posts /wp-admin/edit.php | 3.12 ▼0.24 | 26.02 ▼22.55 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 24.49 ▼77.00 |
Media Library /wp-admin/upload.php | 3.12 ▼0.11 | 25.66 ▼8.00 |
Jason Birthday Widget /wp-admin/admin.php?page=jason-birthday-widget-settings | 3.12 | 26.32 |
Birthdays list /wp-admin/admin.php?page=jason_bd_admin_bday_list | 3.12 | 31.48 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_jason_birthday_widget |
jason_bd_db_version |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Jason Birthday Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲123 | 13.57 ▼0.69 | 1.80 ▼0.12 | 36.43 ▼9.45 |
Dashboard /wp-admin | 2,253 ▲67 | 5.91 ▲0.97 | 103.84 ▼7.83 | 42.10 ▲2.19 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 2.22 ▲0.08 | 36.89 ▼1.54 | 44.83 ▲11.45 |
Add New Post /wp-admin/post-new.php | 1,402 ▼117 | 20.24 ▼2.89 | 539.65 ▼106.20 | 35.90 ▼43.44 |
Media Library /wp-admin/upload.php | 1,429 ▲44 | 4.18 ▼0.15 | 99.38 ▼2.23 | 43.42 ▼1.05 |
Jason Birthday Widget /wp-admin/admin.php?page=jason-birthday-widget-settings | 882 | 2.05 | 27.24 | 36.67 |
Birthdays list /wp-admin/admin.php?page=jason_bd_admin_bday_list | 983 | 2.02 | 25.02 | 34.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > 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.
- The uninstall procedure has failed, leaving 8 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_jason_birthday_widget
- jason_bd_db_version
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jason_bd_admin_bday_list
- > 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.
SRP 0% 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
The following issues need your attention
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/jason-birthday-widget/templates/template_1.php
- > /wp-content/plugins/jason-birthday-widget/jason-birthday.php
- > /wp-content/plugins/jason-birthday-widget/templates/template_3.php
- > /wp-content/plugins/jason-birthday-widget/templates/template_2.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jason-birthday-widget/widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/jason-birthday-widget/listbirthdays.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/jason-birthday-widget/config.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function ob_stat() in wp-content/plugins/jason-birthday-widget/shortcode.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: birthday, incoming, ical, upcoming, users...
jason-birthday-widget/jason-birthday.php 77% from 13 tests
The main file in "Jason Birthday Widget" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please improve your description making it at least 10 characters long (currently 0 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jason-birthday-widget.php" instead of "jason-birthday.php")
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,134 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 240 | 232 | 916 |
CSS | 1 | 2 | 17 | 186 |
JavaScript | 1 | 3 | 2 | 16 |
XML | 2 | 0 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 13.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 5 | 23.81% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
No PNG images were found in this plugin