Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.97ms] Passed 4 tests
Server-side resources used by Zenost Shortcodes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.29 ▼1.19 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.30 ▼5.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.81 ▼4.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.90 ▼33.08 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.08 ▲2.31 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Zenost Shortcodes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.74 ▲0.36 | 3.78 ▲1.84 | 47.97 ▲8.93 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▼0.05 | 88.66 ▼15.58 | 37.81 ▼4.31 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.01 | 36.39 ▼3.41 | 33.43 ▼9.82 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 17.69 ▼5.78 | 643.94 ▼23.70 | 52.07 ▼1.03 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.23 ▲0.03 | 98.39 ▼18.47 | 43.77 ▼0.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/zenost-shortcodes/shortcodes_tinymce.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zenost-shortcodes/inc/shortcodes.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Editor View), #2 (Editor Menu), #3 (Accordian), #4 (Columns), #5 (Headings), #6 (Lists), #7 (Buttons), #8 (Toggles)
zenost-shortcodes/shortcodes_tinymce.php 85% from 13 tests
The entry point to "Zenost Shortcodes" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 246 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("zenost-shortcodes.php" instead of "shortcodes_tinymce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin551 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 66 | 13 | 234 |
JavaScript | 3 | 12 | 5 | 222 |
CSS | 1 | 8 | 1 | 95 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 11.49KB | 7.05KB | ▼ 38.62% |
screenshot-1.png | 36.42KB | 19.44KB | ▼ 46.61% |
screenshot-5.png | 10.08KB | 6.31KB | ▼ 37.38% |
screenshot-6.png | 5.89KB | 1.81KB | ▼ 69.25% |
screenshot-2.png | 6.13KB | 3.55KB | ▼ 42.20% |