Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼5.13ms] Passed 4 tests
An overview of server-side resources used by Update Alerts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 50.53 ▲1.10 |
Dashboard /wp-admin | 3.47 ▲0.17 | 50.28 ▼9.30 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.18 ▲0.04 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 89.33 ▼12.36 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 42.51 ▲4.05 |
Update Alerts /wp-admin/options-general.php?page=update-alerts | 3.36 | 36.50 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_update_alerts |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
ua_db_version |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Update Alerts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲145 | 13.70 ▼0.60 | 6.56 ▲4.90 | 59.63 ▲18.39 |
Dashboard /wp-admin | 2,232 ▲29 | 4.85 ▼0.00 | 102.95 ▼4.50 | 39.67 ▼7.38 |
Posts /wp-admin/edit.php | 2,111 ▲14 | 2.05 ▲0.04 | 35.20 ▼2.80 | 33.74 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,533 ▲2 | 23.28 ▲0.01 | 677.32 ▼3.18 | 57.50 ▲8.85 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.21 ▲0.06 | 98.80 ▼16.75 | 42.42 ▼7.59 |
Update Alerts /wp-admin/options-general.php?page=update-alerts | 807 | 1.53 | 6.50 | 28.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- ua_db_version
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/update-alerts/public/partials/update-alerts-public-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/update-alerts/admin/class-update-alerts-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/update-alerts/admin/partials/update-alerts-admin-display.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: plugin_management, plugin_alerts
update-alerts/update-alerts.php Passed 13 tests
The main PHP script in "Update Alerts" version 1.3.1 is automatically included on every request by WordPress
49 characters long description:
Alert admins to plugin and WordPress core updates
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin725 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 213 | 758 | 717 |
JavaScript | 2 | 4 | 54 | 6 |
Markdown | 1 | 0 | 0 | 2 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 3 | 5.26% |
▷ Public methods | 47 | 82.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 17.54% |
Functions | 3 | |
▷ Named functions | 3 | 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
No PNG files were detected