Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼4.20ms] Passed 4 tests
Analyzing server-side resources used by DobsonDev Shortcodes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 45.22 ▲3.92 |
Dashboard /wp-admin | 3.63 ▲0.33 | 51.76 ▼5.48 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 50.55 ▲1.24 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 86.16 ▼16.48 |
Media Library /wp-admin/upload.php | 3.49 ▲0.27 | 45.01 ▲4.95 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
DobsonDev Shortcodes: 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,910 ▲149 | 13.61 ▼0.42 | 7.08 ▲4.74 | 41.79 ▼5.48 |
Dashboard /wp-admin | 2,226 ▲26 | 5.81 ▲0.93 | 101.33 ▼7.23 | 40.97 ▼1.35 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.06 ▲0.01 | 37.22 ▼2.19 | 36.11 ▼3.40 |
Add New Post /wp-admin/post-new.php | 1,534 ▲3 | 23.35 ▲0.23 | 622.93 ▼66.26 | 60.84 ▼16.05 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.26 ▲0.02 | 112.84 ▼4.07 | 48.09 ▼5.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dobsondev-shortcodes/dobsondev-shortcodes.php:44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 43 tag instead of maximum 10
dobsondev-shortcodes/dobsondev-shortcodes.php Passed 13 tests
The entry point to "DobsonDev Shortcodes" version 2.1.12 is a PHP file that has certain tags in its header comment area
35 characters long description:
A collection of helpful shortcodes.
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
Good job! No executable or dangerous file extensions detected2,598 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 488 | 393 | 1,803 |
JavaScript | 4 | 6 | 29 | 574 |
CSS | 2 | 0 | 5 | 221 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 217.00 |
▷ Minimum class complexity | 217.00 |
▷ Maximum class complexity | 217.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 61 | |
▷ Static methods | 4 | 6.56% |
▷ Public methods | 9 | 14.75% |
▷ Protected methods | 52 | 85.25% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 29 | 96.67% |
▷ Anonymous functions | 1 | 3.33% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
res/imgs/dd-shortcodes.png | 0.76KB | 0.74KB | ▼ 3.32% |