Benchmarks
Plugin footprint 58% 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
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/responsive-bit-announcements-manager/responsive_bit_announcements.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; ResponsiveBitAnnouncements has a deprecated constructor
Server metrics [RAM: ▼1.82MB] [CPU: ▼183.09ms] Passed 4 tests
A check of server-side resources used by Responsive Bit Announcement Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.82 ▼1.02 | 4.85 ▼28.48 |
Dashboard /wp-admin | 1.83 ▼1.22 | 5.81 ▼29.60 |
Posts /wp-admin/edit.php | 1.84 ▼1.27 | 6.03 ▼34.46 |
Add New Post /wp-admin/post-new.php | 1.83 ▼3.60 | 5.20 ▼634.62 |
Media Library /wp-admin/upload.php | 1.83 ▼1.17 | 5.08 ▼33.66 |
Announcements /wp-admin/edit.php?post_type=rb-announcements | 1.84 | 6.43 |
Announcement's usage guide /wp-admin/edit.php?post_type=rb-announcements&page=rb_announcements_guide | 1.84 | 5.41 |
Add New /wp-admin/post-new.php?post_type=rb-announcements | 1.84 | 6.17 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Responsive Bit Announcement Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,895 ▲299 | 16.23 ▲0.71 | 11.22 ▲2.38 | 47.04 ▼2.08 |
Dashboard /wp-admin | 3,060 ▲126 | 5.91 ▼0.04 | 134.19 ▼4.96 | 127.29 ▲3.77 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.69 ▲0.01 | 67.00 ▲4.79 | 87.78 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,698 ▲28 | 19.08 ▲0.71 | 392.57 ▲35.12 | 105.83 ▼8.80 |
Media Library /wp-admin/upload.php | 1,847 ▲40 | 5.01 ▼0.04 | 155.51 ▼1.79 | 119.93 ▲2.43 |
Announcements /wp-admin/edit.php?post_type=rb-announcements | 1,436 | 2.61 | 61.70 | 78.68 |
Announcement's usage guide /wp-admin/edit.php?post_type=rb-announcements&page=rb_announcements_guide | 1,068 | 2.14 | 54.26 | 70.47 |
Add New /wp-admin/post-new.php?post_type=rb-announcements | 2,953 | 9.17 | 222.50 | 138.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/responsive-bit-announcements-manager/responsive_bit_announcements.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; ResponsiveBitAnnouncements has a deprecated constructor
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=rb-announcements
- > Deprecated in wp-content/plugins/responsive-bit-announcements-manager/responsive_bit_announcements.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; ResponsiveBitAnnouncements has a deprecated constructor
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-bit-announcements-manager/responsive_bit_announcements.php:16
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Showing the add item for Announcements.), #2 (Showing admin screen for Annoucements.), #3 (Showing how to add annoucement date for Announcements.)
responsive-bit-announcements-manager/responsive_bit_announcements.php 92% from 13 tests
This is the main PHP file of "Responsive Bit Announcement Manager" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("responsive-bit-announcements-manager.php" instead of "responsive_bit_announcements.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected462 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 46 | 28 | 255 |
PHP | 1 | 20 | 16 | 181 |
CSS | 2 | 4 | 4 | 26 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
18 PNG files occupy 0.14MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_ffd27a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
screenshot-3.png | 12.52KB | 7.42KB | ▼ 40.75% |
css/images/ui-icons_228ef1_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.25KB | 0.15KB | ▼ 37.45% |
css/images/ui-bg_flat_10_000000_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |