Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.62ms] Passed 4 tests
Server-side resources used by Responsive News & Announcements
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.31 ▲0.74 |
Dashboard /wp-admin | 3.36 ▲0.05 | 59.17 ▲0.61 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 57.59 ▼2.74 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 96.65 ▼3.59 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.98 ▼0.77 |
Announcements /wp-admin/edit.php?post_type=announcements | 3.32 | 39.95 |
Add New /wp-admin/post-new.php?post_type=announcements | 3.40 | 55.01 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Responsive News & Announcements
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲145 | 13.46 ▼0.89 | 8.62 ▲6.92 | 44.00 ▲3.87 |
Dashboard /wp-admin | 2,219 ▲45 | 5.55 ▼0.01 | 88.19 ▼26.46 | 37.77 ▼5.36 |
Posts /wp-admin/edit.php | 2,133 ▲30 | 2.04 ▲0.07 | 50.07 ▲0.35 | 40.19 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,561 ▲32 | 23.18 ▲0.15 | 700.38 ▲70.91 | 50.90 ▲3.63 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.17 ▼0.10 | 106.67 ▲4.99 | 50.72 ▲5.01 |
Announcements /wp-admin/edit.php?post_type=announcements | 1,091 | 1.96 | 31.33 | 31.79 |
Add New /wp-admin/post-new.php?post_type=announcements | 2,242 | 7.67 | 179.29 | 68.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/responsive-news-announcements/annoucements.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: announcement, breaking news, announcements, news, ticker
responsive-news-announcements/annoucements.php 85% from 13 tests
The entry point to "Responsive News & Announcements" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("responsive-news-announcements.php" instead of "annoucements.php")
- Description: The description should be shorter than 140 characters (currently 156 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected671 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 25 | 56 | 276 |
JavaScript | 3 | 47 | 30 | 255 |
PHP | 1 | 29 | 18 | 140 |
PHP code Passed 2 tests
An overview 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.44 |
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 | 7 | |
▷ Named functions | 7 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.31MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/ui-lightness/images/ui-icons_ef8c08_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/ui-lightness/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
screenshot-1.png | 103.56KB | 31.55KB | ▼ 69.53% |
css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.13KB | 0.18KB | 0.00% |
css/ui-lightness/images/ui-icons_ffd27a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |