Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > User deprecated in wp-includes/functions.php+5643
File upgrade-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/upgrade.php instead.
Server metrics [RAM: ▼0.93MB] [CPU: ▼29.28ms] Passed 4 tests
A check of server-side resources used by Announcements
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 32.35 ▼6.23 |
Dashboard /wp-admin | 3.01 ▼0.29 | 25.49 ▼21.84 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 25.30 ▼20.54 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 31.24 ▼63.60 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 23.22 ▼11.15 |
Site Frontend Announcements /wp-admin/admin.php?page=Announcements-Site-Frontend | 3.01 | 22.48 |
Announcement Settings /wp-admin/admin.php?page=Announcement-Settings | 3.01 | 19.60 |
Announcements /wp-admin/admin.php?page=Announcements | 3.01 | 22.53 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_announceuser |
wp_announcement |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
announcementInstalled |
db_upgraded |
Browser metrics Passed 4 tests
Announcements: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.63 ▼0.68 | 4.73 ▲3.07 | 39.67 ▼1.39 |
Dashboard /wp-admin | 2,240 ▲55 | 6.09 ▲0.23 | 94.50 ▼8.00 | 39.38 ▼7.16 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.05 ▲0.00 | 42.02 ▼0.82 | 34.94 ▼0.26 |
Add New Post /wp-admin/post-new.php | 1,567 ▲39 | 18.69 ▲0.56 | 621.73 ▲3.36 | 52.07 ▼7.47 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.19 ▼0.06 | 93.97 ▼4.69 | 41.80 ▼4.17 |
Site Frontend Announcements /wp-admin/admin.php?page=Announcements-Site-Frontend | 876 | 2.02 | 23.92 | 26.35 |
Announcement Settings /wp-admin/admin.php?page=Announcement-Settings | 903 | 2.04 | 23.14 | 21.71 |
Announcements /wp-admin/admin.php?page=Announcements | 793 | 2.18 | 24.54 | 24.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_announceuser
- wp_announcement
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- announcementInstalled
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 27 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Announcements
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Announcements
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Announcements
- > User deprecated in wp-includes/functions.php+5737
Function WP_User->id was called with an argument that is deprecated since version 2.1.0! Use WP_User->ID instead.
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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 require attention:
- Tags: Too many tags (27 tag instead of maximum 10); only the first 5 tags are used in your directory listing
announcements/announcement.php 85% from 13 tests
"Announcements" version 1.9.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("announcements.php" instead of "announcement.php")
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
Everything looks great! No dangerous files found in this plugin839 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 117 | 62 | 726 |
JavaScript | 1 | 23 | 14 | 113 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/images/new.png | 3.48KB | 1.90KB | ▼ 45.54% |