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.05MB] [CPU: ▼4.76ms] Passed 4 tests
This is a short check of server-side resources used by Scheduled Announcements Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.00 ▼7.79 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.66 ▼1.91 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 44.99 ▲0.42 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 95.46 ▼8.96 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.12 ▼0.37 |
Announcement Categories /wp-admin/edit-tags.php?taxonomy=saw_categories&post_type=sched_announcement | 3.27 | 33.27 |
Settings /wp-admin/edit.php?post_type=sched_announcement&page=scheduled-announcement-widget | 3.25 | 28.78 |
Add Announcement /wp-admin/post-new.php?post_type=sched_announcement | 3.42 | 44.05 |
Announcements /wp-admin/edit.php?post_type=sched_announcement | 3.32 | 35.88 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_recent-posts |
saw_height_options |
can_compress_scripts |
saw_speed_options |
widget_saw_widget |
saw_text_color_options |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
saw_order_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Scheduled Announcements Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,954 ▲183 | 13.74 ▼0.89 | 5.29 ▲3.40 | 38.94 ▼4.13 |
Dashboard /wp-admin | 2,256 ▲65 | 5.05 ▲0.12 | 100.88 ▼5.57 | 62.11 ▲22.60 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.10 ▲0.13 | 35.30 ▼5.54 | 32.85 ▼5.85 |
Add New Post /wp-admin/post-new.php | 1,568 ▲40 | 23.22 ▲5.00 | 696.78 ▲79.00 | 51.60 ▼5.19 |
Media Library /wp-admin/upload.php | 1,435 ▲47 | 4.29 ▲0.04 | 104.61 ▼2.89 | 68.68 ▲26.73 |
Announcement Categories /wp-admin/edit-tags.php?taxonomy=saw_categories&post_type=sched_announcement | 1,309 | 2.29 | 30.90 | 30.51 |
Settings /wp-admin/edit.php?post_type=sched_announcement&page=scheduled-announcement-widget | 1,022 | 1.84 | 28.70 | 27.53 |
Add Announcement /wp-admin/post-new.php?post_type=sched_announcement | 2,382 | 7.70 | 173.99 | 128.14 |
Announcements /wp-admin/edit.php?post_type=sched_announcement | 1,100 | 2.06 | 35.10 | 27.97 |
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: 15 options
- saw_link_color_options
- widget_recent-posts
- widget_saw_widget
- theysaidso_admin_options
- widget_recent-comments
- saw_speed_options
- saw_scroll_options
- widget_theysaidso_widget
- saw_trans_options
- saw_order_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
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/scheduled-announcements-widget/scheduled-announcements.php:19
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (The widget works in both the sidebar and within posts/pages and themes.), #2 (Customize the widget under Announcements > Settings), #3 (Announcements can appear on the site indefinitely or only during a set time range.)
scheduled-announcements-widget/scheduled-announcements.php 92% from 13 tests
"Scheduled Announcements Widget" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("scheduled-announcements-widget.php" instead of "scheduled-announcements.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
Success! There were no dangerous files found in this plugin1,346 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 133 | 36 | 766 |
PHP | 1 | 104 | 56 | 580 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 10.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 | 16 | |
▷ Named functions | 16 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
js/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |
saw-menu-icon.png | 1.27KB | 0.63KB | ▼ 50.58% |