Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.25ms] Passed 4 tests
An overview of server-side resources used by Lana Shortcodes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.11 ▼2.23 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.56 ▼4.91 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.25 ▼0.86 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 81.62 ▼4.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.90 ▲2.07 |
Server storage [IO: ▲4.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Lana Shortcodes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲35 | 13.55 ▼0.75 | 1.77 ▼0.26 | 42.40 ▼2.25 |
Dashboard /wp-admin | 2,212 ▲27 | 4.86 ▼1.15 | 107.68 ▼9.37 | 41.08 ▼2.63 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.11 | 37.44 ▼1.06 | 37.56 ▲0.52 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.05 ▲0.17 | 679.86 ▲3.75 | 60.22 ▲6.24 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.30 ▲0.06 | 93.19 ▼17.26 | 42.39 ▼4.45 |
Lana Shortcodes /wp-admin/lana-shortcodes-settings.php | 26 | 0.44 | 0.07 | 15.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/lana-shortcodes-settings.php
- > Network (severe)
wp-admin/lana-shortcodes-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: bootstrap, bootstrap shortcodes
lana-shortcodes/lana-shortcodes.php Passed 13 tests
Analyzing the main PHP file in "Lana Shortcodes" version 1.2.0
36 characters long description:
Shortcodes with Bootstrap framework.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected27,158 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 1,432 | 39 | 19,674 |
JavaScript | 14 | 1,812 | 1,587 | 6,860 |
PHP | 1 | 118 | 161 | 336 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 17 | |
▷ Named functions | 16 | 94.12% |
▷ Anonymous functions | 1 | 5.88% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/plugin-header.png | 28.91KB | 29.86KB | 0.00% |