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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.07MB] [CPU: ▼149.64ms] Passed 4 tests
This is a short check of server-side resources used by autoshortcoder
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 32.21 ▲10.58 |
Dashboard /wp-admin | 3.17 ▲0.12 | 46.70 ▼0.63 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 44.99 ▲0.05 |
Add New Post /wp-admin/post-new.php | 4.76 ▼0.68 | 58.55 ▼600.63 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 35.46 ▲2.66 |
Autoshortcode /wp-admin/options-general.php?page=autoshortcoder_settings | 3.08 | 30.72 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options |
---|
autoshortcoder_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for autoshortcoder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,712 ▲116 | 15.89 ▲0.05 | 9.73 ▲0.64 | 44.13 ▼2.72 |
Dashboard /wp-admin | 2,976 ▲42 | 5.89 ▼0.07 | 132.14 ▼16.93 | 111.87 ▼6.53 |
Posts /wp-admin/edit.php | 2,733 ▼6 | 2.59 ▼0.11 | 65.31 ▼10.24 | 90.02 ▼3.63 |
Add New Post /wp-admin/post-new.php | 1,883 ▲383 | 19.27 ▲0.37 | 388.32 ▲20.24 | 107.29 ▼5.22 |
Media Library /wp-admin/upload.php | 1,742 ▼68 | 5.02 ▲0.00 | 145.99 ▼6.55 | 118.42 ▲1.76 |
Autoshortcode /wp-admin/options-general.php?page=autoshortcoder_settings | 1,057 | 2.09 | 60.29 | 74.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- autoshortcoder_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
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)
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=autoshortcoder_settings
- > Network (severe)
wp-content/plugins/autoshortcode/assets/js/admin.min.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=autoshortcoder_settings
- > Network (severe)
wp-content/plugins/autoshortcode/assets/js/settings.min.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% from 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
3 plugin tags: wordpress, plugin, shortcodes
autoshortcode/autoshortcoder.php 69% from 13 tests
The primary PHP file in "autoshortcoder" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("autoshortcode.php" instead of "autoshortcoder.php")
- Domain Path: The domain path points to an invalid folder, "/lang/" does not exist
- Requires at least: Required version does not match the one declared in readme.txt ("3.9" instead of "4.0")
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
Success! There were no dangerous files found in this plugin452 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 161 | 285 | 448 |
Markdown | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 32.33 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 27 | 93.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.90% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin