Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.57ms] Passed 4 tests
Server-side resources used by Post Announcement
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 40.94 ▲2.05 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.90 ▼2.76 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.06 ▼0.19 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.57 ▼5.16 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.14 ▲1.85 |
Post Announcement /wp-admin/options-general.php?page=post-announcement/post-announcement-menu.php | 3.22 | 30.75 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 9 new options
New WordPress options |
---|
buffercode_post_announcement_font_color |
widget_recent-posts |
buffercode_post_announcement_bg_color |
widget_recent-comments |
db_upgraded |
buffercode_post_announcement_custom_heading |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Post Announcement
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.35 ▼1.03 | 4.76 ▲2.88 | 44.48 ▲1.30 |
Dashboard /wp-admin | 2,209 ▲18 | 5.86 ▲0.02 | 104.66 ▲1.82 | 40.17 ▼4.09 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▲0.01 | 41.03 ▲4.89 | 36.09 ▼2.33 |
Add New Post /wp-admin/post-new.php | 6,298 ▲4,764 | 19.21 ▼3.98 | 915.67 ▲229.11 | 69.99 ▲6.09 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.24 ▲0.04 | 96.49 ▼6.86 | 41.01 ▼2.91 |
Post Announcement /wp-admin/options-general.php?page=post-announcement/post-announcement-menu.php | 825 | 1.88 | 30.71 | 26.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- theysaidso_admin_options
- buffercode_post_announcement_font_color
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- buffercode_post_announcement_custom_heading
- widget_theysaidso_widget
- buffercode_post_announcement_bg_color
- can_compress_scripts
Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Post Announcement Output Screen), #2 (Post Announcement entry page.), #3 (Setting page for Post Revision)
post-announcement/post-announcement.php Passed 13 tests
The main file in "Post Announcement" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
98 characters long description:
Through this plugin, user can able to show the announcement or notice to users based on each post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin928 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 138 | 37 | 822 |
PHP | 2 | 43 | 34 | 106 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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 | 9 | |
▷ Named functions | 9 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 9.37KB | 3.77KB | ▼ 59.72% |
js/hv.png | 2.80KB | 7.32KB | 0.00% |
js/hs.png | 2.62KB | 7.54KB | 0.00% |
screenshot-3.png | 19.38KB | 7.70KB | ▼ 60.27% |
screenshot-1.png | 40.97KB | 19.42KB | ▼ 52.61% |