Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼295.85ms] Passed 4 tests
Analyzing server-side resources used by Custom TinyMCE Shortcode Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 51.10 ▲0.20 |
Dashboard /wp-admin | 3.43 ▲0.02 | 32.49 ▲0.44 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 36.90 ▼1.23 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.07 | 96.86 ▼1,181.07 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 22.43 ▼1.28 |
Shortcode Button /wp-admin/options-general.php?page=stscb-page-elements | 3.26 | 25.00 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Custom TinyMCE Shortcode Button
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 16.18 ▲0.52 | 5.90 ▼0.36 | 2.23 ▼0.64 |
Dashboard /wp-admin | 2,897 ▲39 | 6.00 ▼0.20 | 115.60 ▼18.38 | 157.19 ▼1.61 |
Posts /wp-admin/edit.php | 2,715 ▲24 | 3.27 ▲0.04 | 63.65 ▼11.36 | 139.82 ▼13.69 |
Add New Post /wp-admin/post-new.php | 1,669 ▲9 | 16.35 ▲0.40 | 405.57 ▼19.02 | 159.67 ▼3.90 |
Media Library /wp-admin/upload.php | 1,716 ▲18 | 5.57 ▲0.06 | 136.41 ▼7.23 | 193.39 ▲4.20 |
Shortcode Button /wp-admin/options-general.php?page=stscb-page-elements | 1,101 | 2.75 | 58.08 | 124.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=stscb-page-elements
- > Notice in wp-content/plugins/custom-tinymce-shortcode-button/settings.php+11
Undefined index: sc-name
- > GET request to /wp-admin/options-general.php?page=stscb-page-elements
- > Notice in wp-content/plugins/custom-tinymce-shortcode-button/settings.php+12
Undefined index: sc-img-url
- > GET request to /wp-admin/options-general.php?page=stscb-page-elements
- > Notice in wp-content/plugins/custom-tinymce-shortcode-button/settings.php+13
Undefined index: sc-init
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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-tinymce-shortcode-button/settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-tinymce-shortcode-button/settings.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (This screenshot shows a custom button in the TinyMCE editor displaying the defaults button image and shortcode.)
custom-tinymce-shortcode-button/custom-tinymce-shortcode-button.php 92% from 13 tests
The main PHP script in "Custom TinyMCE Shortcode Button" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 196 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin146 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 19 | 8 | 116 |
JavaScript | 1 | 7 | 0 | 30 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image.png | 0.30KB | 0.21KB | ▼ 32.48% |