Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.63MB] [CPU: ▼12.88ms] Passed 4 tests
An overview of server-side resources used by Post Badges
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.50 ▲0.08 |
Dashboard /wp-admin | 3.36 ▲0.05 | 52.54 ▲2.86 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 42.73 ▲0.17 |
Add New Post /wp-admin/post-new.php | 3.20 ▼2.68 | 40.37 ▼54.62 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.81 ▲3.73 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Post Badges: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 14.74 ▲0.36 | 1.80 ▲0.08 | 45.44 ▲0.87 |
Dashboard /wp-admin | 2,206 ▲18 | 5.02 ▼0.89 | 99.18 ▼8.61 | 38.03 ▼4.84 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.02 ▲0.04 | 35.13 ▼0.00 | 29.27 ▼6.45 |
Add New Post /wp-admin/post-new.php | 6,507 ▲4,988 | 19.98 ▼3.26 | 895.80 ▲248.18 | 59.02 ▲4.01 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.22 ▲0.02 | 93.22 ▼7.84 | 44.18 ▼1.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/templatic-badge/templatic-badge.php:12
- > 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 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (This is how you can set the title and color of the Badges and update the post), #2 (This is how to show a little post badge after your WordPress post title)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== templatic-badge ===
)
templatic-badge/templatic-badge.php Passed 13 tests
The principal PHP file in "Post Badges" v. 1.0.1 is loaded by WordPress automatically on each request
109 characters long description:
This add-on allows you to display a badge on your listings , where you can set label and color for the badge.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected160 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 44 | 33 | 123 |
PO File | 1 | 9 | 9 | 37 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.31MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 268.43KB | 267.01KB | ▼ 0.53% |
screenshot-1.png | 45.53KB | 43.83KB | ▼ 3.73% |