Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.19ms] Passed 4 tests
A check of server-side resources used by Birthday Emails
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.92 ▼3.36 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.37 ▼5.11 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.61 ▲2.41 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.32 ▼14.15 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.19 ▲1.87 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_cjl_bdemail_unsubscribe |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
cjlbdemailCountDown |
cjl_bdemail_settings |
cjlbdemailID |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Birthday Emails
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.21 ▼1.10 | 1.60 ▼0.23 | 40.28 ▼2.70 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼1.06 | 110.39 ▼6.29 | 42.09 ▼2.69 |
Posts /wp-admin/edit.php | 2,090 ▲4 | 2.01 ▼0.04 | 40.03 ▲5.16 | 35.77 ▲3.82 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.76 ▼5.45 | 679.09 ▼5.52 | 50.58 ▼22.40 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▼0.01 | 92.59 ▼15.87 | 42.60 ▼6.84 |
Birthday Emails Settings /wp-admin/birthday-emails.php | 26 | 0.44 | 0.08 | 12.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_cjl_bdemail_unsubscribe
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/birthday-emails/unsubscribe.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/birthday-emails/birthday-emails.php on line 36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/birthday-emails/birthday-emails.php:90
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/birthday-emails/birthday-emails.php on line 36
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/birthday-emails/birthday-emails.php on line 36
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/birthday-emails.php
- > Network (severe)
wp-admin/birthday-emails.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: membership, profile fields, member, buddypress, wordpress...
birthday-emails/birthday-emails.php Passed 13 tests
"Birthday Emails" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
79 characters long description:
Automatically send an email to WordPress or BuddyPress users on their birthday.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,042 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 56 | 191 | 1,042 |
PHP code Passed 2 tests
This is a very shot 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.53 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 39 | |
▷ Named functions | 39 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin