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.01MB] [CPU: ▼4.26ms] Passed 4 tests
Analyzing server-side resources used by My Text Shortcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▼0.00 | 41.48 ▼6.06 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.55 ▼11.81 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.69 ▼4.97 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 100.77 ▲14.19 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.94 ▲5.81 |
List shortcodes /wp-admin/admin.php?page=Plance_MTSC_INIT | 3.22 | 37.66 |
Create shortcode /wp-admin/admin.php?page=Plance_MTSC_INIT-form | 3.27 | 34.83 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_plance_text_shortcodes |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
My Text Shortcodes: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲56 | 14.43 ▲0.13 | 1.78 ▼0.22 | 44.49 ▼2.64 |
Dashboard /wp-admin | 2,233 ▲45 | 4.85 ▼1.00 | 112.46 ▼7.60 | 39.09 ▼8.98 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.00 ▼0.02 | 38.75 ▼0.46 | 32.59 ▼4.07 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 17.50 ▼5.67 | 722.30 ▲9.78 | 57.70 ▼0.91 |
Media Library /wp-admin/upload.php | 1,415 ▲33 | 4.10 ▼0.04 | 117.07 ▼3.84 | 51.91 ▼0.81 |
List shortcodes /wp-admin/admin.php?page=Plance_MTSC_INIT | 1,058 | 1.72 | 30.42 | 32.41 |
Create shortcode /wp-admin/admin.php?page=Plance_MTSC_INIT-form | 865 | 2.06 | 25.97 | 29.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/my-text-shortcodes/my-text-shortcodes.php
- > /wp-content/plugins/my-text-shortcodes/app/class.table.php
- > /wp-content/plugins/my-text-shortcodes/app/class.db.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: form_action in wp-content/plugins/my-text-shortcodes/app/view/form.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/my-text-shortcodes/app/view/form.php:4
- > PHP Notice
Undefined variable: form_title in wp-content/plugins/my-text-shortcodes/app/view/form.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
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
7 plugin tags: shortcode, page, post, ad, text...
my-text-shortcodes/my-text-shortcodes.php Passed 13 tests
The main PHP file in "My Text Shortcodes" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
Creating text shortcodes, using friendly interface
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
Good job! No executable or dangerous file extensions detected941 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 157 | 346 | 855 |
PO File | 1 | 46 | 69 | 86 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 12.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 17 | 30.36% |
▷ Public methods | 50 | 89.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.71% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected