Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼298.89ms] Passed 4 tests
This is a short check of server-side resources used by TinyMCE shortcode Addon
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 55.19 ▲4.93 |
Dashboard /wp-admin | 3.43 ▲0.03 | 32.70 ▼1.24 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 38.05 ▲1.00 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 97.65 ▼1,196.84 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 26.80 ▲1.51 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
TinyMCE shortcode Addon: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,906 ▲152 | 16.75 ▲0.96 | 10.69 ▲3.29 | 2.90 ▼0.33 |
Dashboard /wp-admin | 2,894 ▲33 | 6.14 ▼0.07 | 116.31 ▼15.30 | 155.51 ▼8.78 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.23 ▼0.02 | 61.77 ▼0.38 | 138.77 ▼3.33 |
Add New Post /wp-admin/post-new.php | 1,673 ▼50 | 20.73 ▼1.22 | 436.04 ▲0.32 | 154.94 ▼5.11 |
Media Library /wp-admin/upload.php | 1,700 ▲5 | 5.53 ▼0.04 | 140.03 ▲0.15 | 189.02 ▲0.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/360crest-themeone-tinymce-shortcodes/includes/shortcode-functions.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/360crest-themeone-tinymce-shortcodes/includes/mce/sq_shortcodes_tinymce.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/360crest-themeone-tinymce-shortcodes/includes/scripts.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: slider, shortcode, button, columns, toggle...
360crest-themeone-tinymce-shortcodes/sq-shortcodes.php 92% from 13 tests
This is the main PHP file of "TinyMCE shortcode Addon" version 1.0.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: The principal plugin file should be the same as the plugin slug ("360crest-themeone-tinymce-shortcodes.php" instead of "sq-shortcodes.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected873 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 102 | 16 | 461 |
JavaScript | 2 | 50 | 26 | 265 |
PHP | 4 | 63 | 72 | 147 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 15 | |
▷ Named functions | 15 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/plus.png | 0.14KB | 0.09KB | ▼ 33.33% |
tinymce.png | 17.74KB | 0.20KB | ▼ 98.85% |
includes/images/li_minus_gold.png | 0.16KB | 0.12KB | ▼ 24.39% |
includes/images/minus.png | 0.13KB | 0.09KB | ▼ 32.85% |
includes/images/li_minus_black.png | 0.16KB | 0.12KB | ▼ 24.39% |