Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.56MB] [CPU: ▼14.78ms] Passed 4 tests
An overview of server-side resources used by Badge Creator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 39.03 ▲1.90 |
Dashboard /wp-admin | 3.43 ▲0.12 | 49.34 ▼2.65 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 48.36 ▼2.08 |
Add New Post /wp-admin/post-new.php | 3.27 ▼2.61 | 34.79 ▼56.28 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 38.83 ▲5.78 |
Badges /wp-admin/edit.php?post_type=badgecreator-badge | 3.39 | 35.45 |
New badge /wp-admin/post-new.php?post_type=badgecreator-badge | 3.27 | 31.63 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Badge Creator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲192 | 14.88 ▲0.53 | 17.23 ▲15.47 | 41.88 ▲1.02 |
Dashboard /wp-admin | 2,226 ▲52 | 5.64 ▼0.05 | 88.95 ▼0.95 | 38.95 ▼1.30 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.23 ▲0.19 | 39.42 ▲5.40 | 37.03 ▼3.81 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.59 ▲0.43 | 645.48 ▼34.03 | 48.84 ▼4.90 |
Media Library /wp-admin/upload.php | 1,441 ▲44 | 4.21 ▲0.05 | 95.98 ▼6.97 | 43.35 ▼2.52 |
Badges /wp-admin/edit.php?post_type=badgecreator-badge | 1,109 | 2.17 | 31.56 | 26.98 |
New badge /wp-admin/post-new.php?post_type=badgecreator-badge | 1,527 | 2.55 | 50.26 | 45.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=badgecreator-badge
- > Notice in wp-content/plugins/badge-creator-free/admin/class-badgecreator-admin.php+216
Undefined index: badgeCreator_noncename
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=badgecreator-badge
- > Notice in wp-content/plugins/badge-creator-free/admin/class-badgecreator-admin.php+205
Undefined variable: image_id
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=badgecreator-badge
- > Network (severe)
wp-content/plugins/badge-creator-free/admin/js/badgeCreator-admin.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=badgecreator-badge
- > Network (severe)
wp-content/plugins/badge-creator-free/admin/css/badgeCreator-admin.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: There are too many tags (17 tag instead of maximum 10)
- Screenshots: These screenshots have no corresponding images in /assets: #2 (Screenshot 2), #3 (Screenshot 3), #4 (Screenshot 4), #5 (Screenshot 5), #6 (Screenshot 6), #7 (Screenshot 7), #8 (Screenshot 8), #9 (Screenshot 9)
badge-creator-free/badgecreator.php 85% from 13 tests
"Badge Creator" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("badge-creator-free.php" instead of "badgecreator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin16,468 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 3,552 | 8,160 | 15,781 |
PHP | 10 | 171 | 501 | 416 |
CSS | 4 | 59 | 24 | 271 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/js/upload/img/border-image.png | 1.32KB | 0.23KB | ▼ 82.41% |
public/js/upload/img/icons.png | 1.36KB | 0.52KB | ▼ 62.02% |
public/images/Uploadicon.png | 1.17KB | 0.92KB | ▼ 21.47% |
public/images/Downloadicon.png | 1.22KB | 0.93KB | ▼ 23.32% |