Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼138.86ms] Passed 4 tests
An overview of server-side resources used by Basic Shortcode Elements
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 35.24 ▲15.43 |
Dashboard /wp-admin | 3.15 ▲0.10 | 48.34 ▲13.35 |
Posts /wp-admin/edit.php | 3.20 ▲0.10 | 45.56 ▲2.31 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 90.10 ▼567.61 |
Media Library /wp-admin/upload.php | 3.10 ▲0.09 | 32.00 ▼3.47 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Basic Shortcode Elements: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,707 ▲111 | 16.25 ▲0.57 | 11.72 ▲2.27 | 66.01 ▲22.54 |
Dashboard /wp-admin | 2,972 ▲38 | 5.88 ▼0.07 | 145.46 ▼6.90 | 111.87 ▲6.20 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.72 ▲0.02 | 65.97 ▼7.63 | 93.42 ▲8.70 |
Add New Post /wp-admin/post-new.php | 1,706 ▲23 | 18.49 ▼0.36 | 377.31 ▼17.45 | 108.99 ▼0.55 |
Media Library /wp-admin/upload.php | 1,778 ▼29 | 5.38 ▲0.34 | 150.22 ▼6.80 | 114.39 ▼2.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: twitter, table styles, facebook, parallax image, share posts...
basic-shortcode-elements/basic_shortcode_elements.php 85% from 13 tests
Analyzing the main PHP file in "Basic Shortcode Elements" version 1.3
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("basic-shortcode-elements.php" instead of "basic_shortcode_elements.php")
- Text Domain: Please use dashes and lowercase characters for text domains
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
There were no executable files found in this plugin1,875 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 221 | 51 | 1,222 |
PHP | 1 | 166 | 35 | 363 |
JavaScript | 1 | 168 | 55 | 290 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/icons/vertical-space-separation.png | 0.13KB | 0.17KB | 0.00% |
admin/icons/table2.png | 0.87KB | 0.26KB | ▼ 70.01% |
admin/icons/plus_one_black_24_2x.png | 0.15KB | 0.22KB | 0.00% |
admin/icons/table.png | 0.72KB | 0.20KB | ▼ 72.94% |
admin/icons/last-posts.png | 0.61KB | 0.21KB | ▼ 66.08% |