Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.35MB] [CPU: ▼2.33ms] Passed 4 tests
Server-side resources used by Dynamic Shortcode
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 42.01 ▼0.75 |
Dashboard /wp-admin | 3.65 ▲0.35 | 47.41 ▲1.36 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 50.10 ▼3.56 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.37 | 87.10 ▼6.37 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 43.03 ▲9.99 |
Keep It Alive /wp-admin/admin.php?page=dynamic-shortcode-donate | 3.54 | 33.55 |
Placeholders /wp-admin/admin.php?page=dynamic-shortcode-placeholders | 3.54 | 34.67 |
Global Settings /wp-admin/admin.php?page=dynamic-shortcode-globalsettings | 3.54 | 33.76 |
Help /wp-admin/admin.php?page=dynamic-shortcode-help | 3.54 | 30.38 |
Shortcodes /wp-admin/admin.php?page=dynamic-shortcode-shortcodes | 3.54 | 32.87 |
Notice /wp-admin/admin.php?page=dynamic-shortcode-notice | 3.54 | 31.15 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_dynamic_shortcode_globalsettings |
wp_dynamic_shortcode_placeholders |
wp_dynamic_shortcode |
wp_dynamic_shortcode_settings |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Dynamic Shortcode: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲193 | 13.73 ▼0.56 | 1.82 ▼0.32 | 28.41 ▼23.45 |
Dashboard /wp-admin | 2,332 ▲141 | 5.44 ▲0.53 | 120.01 ▲15.77 | 88.40 ▲45.27 |
Posts /wp-admin/edit.php | 2,242 ▲150 | 2.76 ▲0.75 | 40.25 ▼5.73 | 85.11 ▲46.88 |
Add New Post /wp-admin/post-new.php | 1,731 ▲212 | 21.10 ▼2.14 | 827.34 ▲117.85 | 41.03 ▼18.61 |
Media Library /wp-admin/upload.php | 1,481 ▲93 | 4.81 ▲0.52 | 117.40 ▲3.64 | 81.65 ▲35.61 |
Keep It Alive /wp-admin/admin.php?page=dynamic-shortcode-donate | 1,021 | 2.20 | 30.45 | 47.27 |
Placeholders /wp-admin/admin.php?page=dynamic-shortcode-placeholders | 1,071 | 2.50 | 28.78 | 49.28 |
Global Settings /wp-admin/admin.php?page=dynamic-shortcode-globalsettings | 1,203 | 2.45 | 29.28 | 40.70 |
Help /wp-admin/admin.php?page=dynamic-shortcode-help | 1,022 | 2.20 | 29.82 | 38.07 |
Shortcodes /wp-admin/admin.php?page=dynamic-shortcode-shortcodes | 1,172 | 2.22 | 27.94 | 48.13 |
Notice /wp-admin/admin.php?page=dynamic-shortcode-notice | 995 | 2.19 | 30.22 | 38.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables detected upon uninstall: 4 tables
- wp_dynamic_shortcode
- wp_dynamic_shortcode_settings
- wp_dynamic_shortcode_globalsettings
- wp_dynamic_shortcode_placeholders
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-shortcode-ajax/AdminDashboard.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-shortcode-ajax/Hooks.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/dynamic-shortcode-ajax/index.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-shortcode-ajax/Dynamic.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-shortcode-ajax/DynamicReplace.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=dynamic-shortcode-donate
- > Network (severe)
https://www.paypalobjects.com/en_CA/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Requires php: Version not formatted correctly
dynamic-shortcode-ajax/index.php 92% from 13 tests
This is the main PHP file of "Dynamic Shortcode" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dynamic-shortcode-ajax.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected16,331 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 1,326 | 7 | 9,961 |
JavaScript | 6 | 245 | 21 | 3,506 |
PHP | 12 | 685 | 121 | 2,864 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 89 | |
▷ Named functions | 89 | 100.00% |
▷ Anonymous functions | 0 | 0.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
There were not PNG files found in your plugin