Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/target-notifications/includes/target_core.php+21
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.37MB] [CPU: ▼2.51ms] Passed 4 tests
This is a short check of server-side resources used by Target Notifications
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 43.80 ▲6.08 |
Dashboard /wp-admin | 3.73 ▲0.42 | 53.01 ▲6.57 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 46.17 ▼14.29 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 93.40 ▼6.60 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 39.88 ▲4.76 |
Target Notifications /wp-admin/admin.php?page=target-main-menu | 3.62 | 33.00 |
User interests /wp-admin/admin.php?page=target-menu-select | 3.61 | 38.22 |
Mailchimp integration /wp-admin/admin.php?page=target-menu-integration | 3.62 | 33.07 |
Subscribers /wp-admin/admin.php?page=target-sub-menu | 3.62 | 39.48 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/target-notifications/" and "wp-content/uploads/"
- (new file) wp-content/logs/target/.empty
Filesystem: 23 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_target_subscribers |
wp_target_subscriber_selection |
New WordPress options |
---|
widget_recent-comments |
category_children |
db_upgraded |
target_options |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Target Notifications
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲211 | 13.62 ▲0.42 | 6.31 ▲1.49 | 42.18 ▼5.27 |
Dashboard /wp-admin | 2,232 ▲55 | 5.88 ▲0.03 | 95.78 ▼14.02 | 69.64 ▲29.19 |
Posts /wp-admin/edit.php | 2,131 ▲39 | 2.03 ▲0.07 | 35.12 ▼13.37 | 31.24 ▼14.73 |
Add New Post /wp-admin/post-new.php | 1,708 ▲166 | 24.73 ▲6.53 | 622.91 ▼38.07 | 52.55 ▼8.43 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.16 ▼0.07 | 105.03 ▼2.00 | 45.09 ▲2.26 |
Target Notifications /wp-admin/admin.php?page=target-main-menu | 996 | 2.04 | 25.45 | 25.45 |
User interests /wp-admin/admin.php?page=target-menu-select | 951 | 2.10 | 24.86 | 29.39 |
Mailchimp integration /wp-admin/admin.php?page=target-menu-integration | 866 | 2.00 | 24.21 | 26.09 |
Subscribers /wp-admin/admin.php?page=target-sub-menu | 903 | 1.81 | 28.93 | 24.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- category_children
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/target-notifications/target-notifications.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/target-notifications/includes/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/target-notifications/shortcode/target_shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/target-notifications/includes/target_core.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/target-notifications/includes/target_activation.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #6 in target-notifications/assets to your readme.txt
target-notifications/target-notifications.php Passed 13 tests
The main PHP file in "Target Notifications" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
131 characters long description:
Target Notifications lets you send automated personalized notifications based on users' categories/tags selected or search queries.
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
No dangerous file extensions were detected3,143 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 283 | 275 | 3,002 |
CSS | 2 | 14 | 15 | 101 |
JavaScript | 1 | 4 | 4 | 40 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 62 | |
▷ Named functions | 62 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/adminicon.png | 0.31KB | 0.38KB | 0.00% |