Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/name-day-reminder/namedayreminder.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; NameDayReminderWidget has a deprecated constructor
Server metrics [RAM: ▼1.81MB] [CPU: ▼190.01ms] Passed 4 tests
A check of server-side resources used by Name Day Reminder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.82 ▼1.01 | 5.36 ▼31.04 |
Dashboard /wp-admin | 1.84 ▼1.22 | 5.30 ▼46.01 |
Posts /wp-admin/edit.php | 1.84 ▼1.27 | 5.40 ▼35.45 |
Add New Post /wp-admin/post-new.php | 1.84 ▼3.59 | 4.37 ▼647.52 |
Media Library /wp-admin/upload.php | 1.84 ▼1.16 | 8.16 ▼26.11 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_name_day_reminder |
New WordPress options |
---|
widget_namedayreminderwidget |
jal_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Name Day Reminder
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.16 ▲0.10 | 7.94 ▼1.27 | 47.50 ▼5.14 |
Dashboard /wp-admin | 2,973 ▲39 | 5.86 ▼0.30 | 147.81 ▼2.13 | 127.55 ▲7.92 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.01 | 62.50 ▼2.14 | 94.70 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.71 ▲0.03 | 373.70 ▼15.58 | 111.07 ▼10.98 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.00 ▲0.02 | 155.32 ▼0.78 | 126.24 ▼1.47 |
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
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/name-day-reminder/namedayreminder.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; NameDayReminderWidget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 2 options in the database
- jal_db_version
- widget_namedayreminderwidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/name-day-reminder/namedayreminder.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 20 tag instead of maximum 10
- Screenshots: Add an image for screenshot #1 (This is the widget control panel of the Name Day Reminder plugin)
name-day-reminder/namedayreminder.php 92% from 13 tests
The primary PHP file in "Name Day Reminder" version 0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("name-day-reminder.php" instead of "namedayreminder.php")
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
Success! There were no dangerous files found in this plugin222 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 10 | 195 |
CSS | 1 | 0 | 0 | 27 |
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.17 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 6 | |
▷ Static methods | 3 | 50.00% |
▷ Public methods | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin