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
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼11.57ms] Passed 4 tests
This is a short check of server-side resources used by Albnet Shortcodes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.88 ▼1.75 |
Dashboard /wp-admin | 3.31 ▼0.03 | 43.49 ▼18.97 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 41.42 ▼4.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.09 ▼21.22 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.62 ▲0.53 |
Server storage [IO: ▲1.76MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Albnet Shortcodes: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,082 ▲336 | 13.83 ▼0.84 | 11.63 ▲9.99 | 44.80 ▼2.10 |
Dashboard /wp-admin | 2,221 ▲30 | 4.86 ▼1.04 | 97.37 ▼2.60 | 39.18 ▼3.29 |
Posts /wp-admin/edit.php | 2,083 ▼6 | 2.00 ▲0.03 | 34.47 ▼5.04 | 32.29 ▼4.10 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 18.62 ▼4.44 | 604.34 ▼27.81 | 50.15 ▼2.50 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.23 ▼0.02 | 92.93 ▼12.12 | 39.31 ▼7.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/albnet-shortcodes/shortcode-horizontal.php
- > /wp-content/plugins/albnet-shortcodes/albnet-shortcodes.php
- > /wp-content/plugins/albnet-shortcodes/shortcode-archive.php
- > /wp-content/plugins/albnet-shortcodes/shortcode-slideshow.php
- > /wp-content/plugins/albnet-shortcodes/shortcode-card.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/albnet-shortcodes/settings/index.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/albnet-shortcodes/settings/init.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: albreis, uikit
albnet-shortcodes/albnet-shortcodes.php Passed 13 tests
The main file in "Albnet Shortcodes" v. 1.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
33 characters long description:
A lot of shortcodes to show posts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin27,063 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 10 | 5,906 | 18,051 |
JavaScript | 4 | 3,481 | 58 | 8,648 |
PHP | 7 | 69 | 96 | 364 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon-128x128.png | 3.27KB | 1.23KB | ▼ 62.35% |