Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▼4.79ms] Passed 4 tests
An overview of server-side resources used by WP247 Get Option Shortcode
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 39.36 ▲0.48 |
Dashboard /wp-admin | 3.51 ▲0.21 | 45.00 ▼5.92 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 49.74 ▼1.49 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 78.67 ▼12.23 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.27 ▲3.57 |
Get Option Shortcode /wp-admin/tools.php?page=wp247_get_option_shortcode_options | 3.43 | 34.43 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
wp247_get_option_shortcode |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP247 Get Option Shortcode
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.25 ▼1.06 | 1.69 ▼0.06 | 42.90 ▲0.65 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▲0.92 | 100.25 ▼15.83 | 40.19 ▼6.45 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.04 ▲0.06 | 41.09 ▲3.22 | 37.99 ▲5.14 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 23.12 ▲4.88 | 712.33 ▲117.62 | 51.63 ▲4.51 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.19 ▼0.00 | 98.98 ▲0.49 | 42.09 ▼3.30 |
Get Option Shortcode /wp-admin/tools.php?page=wp247_get_option_shortcode_options | 1,258 | 3.53 | 47.34 | 33.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- wp247_get_option_shortcode
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/wp247-get-option-shortcode/admin/wp247-settings-api/wp247-settings-api.class.php
- > /wp-content/plugins/wp247-get-option-shortcode/admin/wp247-settings-api/wp247-settings-api.php
- > /wp-content/plugins/wp247-get-option-shortcode/admin/wp247xns-client-corequisite-notice/wp247xns-client-corequisite-notice.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp247-get-option-shortcode/admin/wp247-get-option-shortcode-admin.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp247-get-option-shortcode/wp247-get-option-shortcode.php:16
- > 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 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp247-get-option-shortcode ===
)
wp247-get-option-shortcode/wp247-get-option-shortcode.php Passed 13 tests
"WP247 Get Option Shortcode" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
58 characters long description:
Include WordPress options anywhere shortcodes are accepted
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,242 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 214 | 521 | 1,010 |
JavaScript | 2 | 13 | 15 | 118 |
CSS | 1 | 28 | 3 | 114 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 52.75 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 169.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 3 | 4.00% |
▷ Public methods | 73 | 97.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.67% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
No PNG images were found in this plugin