Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▲0.25ms] Passed 4 tests
A check of server-side resources used by TJ Shortcodes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.43 ▲2.17 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.12 ▲2.78 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.68 ▲1.27 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 81.56 ▼1.28 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.87 ▼1.14 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TJ Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲126 | 13.73 ▼1.01 | 7.85 ▲5.95 | 43.01 ▲3.38 |
Dashboard /wp-admin | 2,203 ▼3 | 5.83 ▲0.97 | 97.01 ▲1.85 | 39.94 ▲1.77 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.01 | 39.38 ▲6.50 | 37.09 ▲4.41 |
Add New Post /wp-admin/post-new.php | 2,301 ▲787 | 17.85 ▲0.28 | 659.45 ▲3.52 | 45.38 ▼14.99 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.19 ▲0.03 | 100.25 ▼20.60 | 44.37 ▼2.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/theme-junkie-shortcodes/shortcodes/dropcap.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-shortcodes/inc/class-junkie-editor-shortcodes.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/theme-junkie-shortcodes/shortcodes/alert.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/theme-junkie-shortcodes/inc/config.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/theme-junkie-shortcodes/shortcodes/hightlights.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/theme-junkie-shortcodes/shortcodes/column.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/theme-junkie-shortcodes/shortcodes/tab.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/theme-junkie-shortcodes/shortcodes/button.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/theme-junkie-shortcodes/shortcodes/toggle.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Shortcodes button) image missing
theme-junkie-shortcodes/tj-shortcodes.php 92% from 13 tests
This is the main PHP file of "TJ Shortcodes" version 0.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("theme-junkie-shortcodes.php" instead of "tj-shortcodes.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
No dangerous file extensions were detected960 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 156 | 238 | 570 |
CSS | 2 | 70 | 20 | 373 |
JavaScript | 1 | 5 | 0 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 13.28KB | 13.12KB | ▼ 1.18% |
assets/img/toggle-open.png | 0.10KB | 0.12KB | 0.00% |
assets/img/toggle-closed.png | 0.10KB | 0.12KB | 0.00% |