Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.95MB] [CPU: ▼30.38ms] Passed 4 tests
This is a short check of server-side resources used by Custom Fields Notifications
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.21 ▼4.17 |
Dashboard /wp-admin | 3.00 ▼0.31 | 29.71 ▼21.86 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 23.54 ▼21.25 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 23.55 ▼74.25 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 27.64 ▼3.96 |
Custom Fields Notifications /wp-admin/options-general.php?page=custom-fields-notifications/inc/wp-options.php | 3.00 | 23.13 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
cfn_auto_display |
cfn_theme |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
cfn_hide_effect |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Fields Notifications
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲152 | 13.67 ▼0.71 | 5.53 ▲3.86 | 37.24 ▼7.15 |
Dashboard /wp-admin | 2,213 ▲28 | 5.79 ▼0.07 | 93.94 ▼2.42 | 37.83 ▼1.21 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.06 | 40.03 ▲2.11 | 35.05 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.66 ▼5.55 | 624.75 ▼60.99 | 56.51 ▼6.12 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.25 ▼0.06 | 97.58 ▼11.19 | 46.06 ▲1.98 |
Custom Fields Notifications /wp-admin/options-general.php?page=custom-fields-notifications/inc/wp-options.php | 898 | 2.15 | 27.66 | 31.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=custom-fields-notifications/inc/wp-options.php
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
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
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/custom-fields-notifications/inc/wp-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/custom-fields-notifications/alimir-custom-fields-notifications.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-fields-notifications/inc/wp-scripts.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-fields-notifications/inc/wp-options.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: custom fields message, wordpress notifications box, notifications, wordpress custom fields
custom-fields-notifications/alimir-custom-fields-notifications.php 85% from 13 tests
The main PHP file in "Custom Fields Notifications" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-fields-notifications.php" instead of "alimir-custom-fields-notifications.php")
- Description: Keep the plugin description shorter than 140 characters (currently 204 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected451 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 0 | 4 | 208 |
PHP | 5 | 30 | 21 | 177 |
PO File | 1 | 180 | 659 | 61 |
JavaScript | 1 | 0 | 1 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 11 | |
▷ Named functions | 11 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/email.png | 1.01KB | 1.03KB | 0.00% |
assets/images/information.png | 2.06KB | 1.65KB | ▼ 20.03% |
assets/images/exclamation.png | 1.96KB | 1.64KB | ▼ 16.33% |
assets/images/accept.png | 1.82KB | 1.62KB | ▼ 10.74% |
assets/images/error.png | 1.15KB | 1.22KB | 0.00% |