Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/shortcode-content/sc_content.php+44
Undefined index: page
Server metrics [RAM: ▼1.89MB] [CPU: ▼68.91ms] Passed 4 tests
An overview of server-side resources used by Shortcode Content
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.81 ▼42.37 |
Dashboard /wp-admin | 2.11 ▼1.19 | 5.38 ▼70.79 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 7.54 ▼51.03 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 5.71 ▼111.45 |
Media Library /wp-admin/upload.php | 2.11 ▼1.11 | 4.61 ▼36.38 |
Add new /wp-admin/admin.php?page=add_new | 3.26 | 36.26 |
SC Content /wp-admin/admin.php?page=sc_content | 3.30 | 42.99 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_sc_content |
wp_sc_content_meta |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
sc_version |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Shortcode Content: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.35 ▼0.24 | 1.49 ▼0.88 | 47.06 ▼8.17 |
Dashboard /wp-admin | 2,221 ▲44 | 5.62 ▼0.06 | 91.94 ▼19.61 | 42.49 ▼9.22 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 1.96 ▼0.06 | 39.86 ▼11.08 | 36.32 ▼8.91 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 22.95 ▼0.26 | 629.67 ▼120.85 | 48.73 ▼23.20 |
Media Library /wp-admin/upload.php | 1,426 ▲29 | 4.28 ▲0.08 | 110.39 ▼15.49 | 45.52 ▼8.15 |
Add new /wp-admin/admin.php?page=add_new | 859 | 2.01 | 27.51 | 95.25 |
SC Content /wp-admin/admin.php?page=sc_content | 993 | 2.16 | 24.60 | 71.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/shortcode-content/sc_content.php+44
Undefined index: page
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- sc_version
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: user roles create, shortcode with content, shortcode, user roles, shortcodes
shortcode-content/sc_content.php 92% from 13 tests
This is the main PHP file of "Shortcode Content" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("shortcode-content.php" instead of "sc_content.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin30,594 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 3,021 | 51 | 23,927 |
JavaScript | 4 | 1,579 | 1,871 | 6,003 |
PHP | 6 | 112 | 96 | 664 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
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 | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin