Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/dynamic-content-shortcode/dyco-shortcode.php+77
Uncaught Error: Class 'Dyco_Shortcode' not found in wp-content/plugins/dynamic-content-shortcode/dyco-shortcode.php:77
Stack trace:
#0 wp-content/plugins/dynamic-content-shortcode/dyco-shortcode.php(81): run_dyco_shortcode()
#1 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#2 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▼0.01MB] [CPU: ▼3.53ms] Passed 4 tests
Server-side resources used by Dynamic Content Shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.21 ▼2.25 |
Dashboard /wp-admin | 3.31 ▼0.04 | 51.10 ▼11.72 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.13 ▼1.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.42 ▲0.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.15 ▲1.14 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Dynamic Content Shortcode
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.63 ▲0.04 | 1.78 ▼0.55 | 40.66 ▼11.12 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▲0.00 | 87.61 ▼3.58 | 36.81 ▼4.87 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.94 ▼0.06 | 34.46 ▼3.35 | 29.57 ▼4.02 |
Add New Post /wp-admin/post-new.php | 1,527 ▲1 | 22.77 ▼0.37 | 591.51 ▼46.20 | 77.43 ▲16.64 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.19 ▼0.02 | 101.94 ▼2.85 | 47.02 ▲3.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-content-shortcode/main.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Screenshot #1 (Usage example on product page) image required
dynamic-content-shortcode/dyco-shortcode.php 85% from 13 tests
The main PHP script in "Dynamic Content Shortcode" version 1.2.0 is automatically included on every request by WordPress
The following require your attention:
- 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 ("dynamic-content-shortcode.php" instead of "dyco-shortcode.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
Good job! No executable or dangerous file extensions detected64 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 20 | 78 | 64 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
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 | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin