Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼238.38ms] Passed 4 tests
Server-side resources used by Achievement Shortcode Add-On for BadgeOS
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.40 | 56.98 ▲32.22 |
Dashboard /wp-admin | 3.41 ▲0.00 | 66.51 ▲34.42 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 35.17 ▼1.65 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 278.16 ▼1,012.05 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 60.35 ▲27.95 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Achievement Shortcode Add-On for BadgeOS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,810 ▲55 | 15.58 ▲0.81 | 5.83 ▲0.12 | 2.29 ▼0.10 |
Dashboard /wp-admin | 2,888 ▲27 | 5.98 ▼0.19 | 118.47 ▼19.10 | 176.01 ▲12.57 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.22 ▼0.02 | 63.09 ▼1.79 | 141.55 ▼71.01 |
Add New Post /wp-admin/post-new.php | 1,773 ▲112 | 21.05 ▲4.29 | 439.48 ▲20.27 | 160.31 ▼30.69 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.58 ▲0.05 | 144.88 ▲1.15 | 209.92 ▲7.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/achievement-shortcode-for-badgeos/badgeos-achievement-shortcode.php:36
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (23 tag instead of maximum 10); only the first 5 tags are used in your directory listing
achievement-shortcode-for-badgeos/badgeos-achievement-shortcode.php 92% from 13 tests
"Achievement Shortcode Add-On for BadgeOS" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("achievement-shortcode-for-badgeos.php" instead of "badgeos-achievement-shortcode.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 detected440 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 54 | 28 | 330 |
PHP | 1 | 27 | 50 | 100 |
JSON | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin