Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.89MB] [CPU: ▼54.01ms] Passed 4 tests
This is a short check of server-side resources used by Badged
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.36 | 5.85 ▼32.27 |
Dashboard /wp-admin | 2.13 ▼1.22 | 6.57 ▼57.14 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 5.82 ▼38.48 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 6.00 ▼88.15 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 6.45 ▼27.32 |
Badged /wp-admin/options-general.php?page=badged_settings | 2.13 | 6.84 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
badged_settings |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Badged
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.27 ▲0.13 | 1.73 ▲0.16 | 42.66 ▲1.49 |
Dashboard /wp-admin | 2,204 ▲24 | 5.68 ▼0.02 | 90.39 ▲1.91 | 44.14 ▲0.04 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.98 ▼0.05 | 37.48 ▲2.83 | 33.08 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.17 ▲0.14 | 670.33 ▼7.98 | 69.33 ▼4.01 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▼0.03 | 96.69 ▲0.93 | 43.46 ▼1.84 |
Badged /wp-admin/options-general.php?page=badged_settings | 860 | 2.13 | 22.98 | 28.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=badged_settings
- > User notice in wp-includes/functions.php+5905
Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- > GET request to /wp-admin/options-general.php?page=badged_settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=badged_settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/badged/admin/views/admin.php:15
- > 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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: toolbar, adminbar, badges, badge, ios...
badged/badged.php Passed 13 tests
This is the main PHP file of "Badged" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
132 characters long description:
Transforms the standard WordPress update & comment notification badges into iOS-styled ones. Just activate and enjoy the red badges.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected506 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 101 | 197 | 238 |
LESS | 4 | 49 | 58 | 181 |
PO File | 2 | 25 | 61 | 73 |
CSS | 3 | 3 | 0 | 13 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 17 | |
▷ Static methods | 6 | 35.29% |
▷ Public methods | 13 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 23.53% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/icon-badged-32@2x.png | 2.27KB | 2.59KB | 0.00% |
admin/assets/img/icon-badged-32.png | 0.94KB | 1.57KB | 0.00% |