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
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.09ms] Passed 4 tests
Server-side resources used by Simple Shortcodes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 45.39 ▼2.61 |
Dashboard /wp-admin | 3.37 ▲0.07 | 51.67 ▼1.32 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 51.22 ▲2.30 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 94.15 ▼2.72 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 41.03 ▲5.32 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Shortcodes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲139 | 13.58 ▼0.97 | 9.97 ▲8.36 | 47.32 ▼1.11 |
Dashboard /wp-admin | 2,223 ▲17 | 4.87 ▲0.01 | 107.60 ▼11.36 | 41.58 ▼5.72 |
Posts /wp-admin/edit.php | 2,099 ▲2 | 2.06 ▲0.04 | 39.13 ▲0.51 | 34.85 ▼4.66 |
Add New Post /wp-admin/post-new.php | 1,528 ▼18 | 17.38 ▼5.73 | 624.80 ▼43.88 | 53.61 ▼0.10 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.17 ▼0.07 | 105.41 ▼17.64 | 42.88 ▼5.28 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/smpl-shortcodes/includes/admin/generator/assets/js/dialog-js.php
- > /wp-content/plugins/smpl-shortcodes/includes/admin/generator/dialog.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/smpl-shortcodes/smpl-shortcodes.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: skeleton, youtube, editor, buttons, callout...
smpl-shortcodes/smpl-shortcodes.php Passed 13 tests
The main file in "Simple Shortcodes" v. 1.0.20 serves as a complement to information provided in readme.txt and as the entry point to the plugin
123 characters long description:
This plugin works in conjuction with the SMPL framework to create shortcodes for many of the framework's internal elements.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected3,396 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 147 | 230 | 1,216 |
PHP | 6 | 340 | 412 | 1,063 |
Sass | 1 | 207 | 38 | 1,028 |
PO File | 1 | 10 | 10 | 45 |
CSS | 2 | 0 | 0 | 38 |
Ruby | 1 | 0 | 3 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
13 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/file_download.png | 0.28KB | 0.32KB | 0.00% |
includes/admin/generator/assets/images/title-bg.png | 0.99KB | 0.09KB | ▼ 90.86% |
assets/images/fadeline-light.png | 1.39KB | 2.85KB | 0.00% |
assets/images/accept.png | 0.31KB | 0.39KB | 0.00% |
includes/admin/generator/assets/images/smpl-icon.png | 41.26KB | 0.31KB | ▼ 99.25% |