Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼1.40MB] [CPU: ▼348.56ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Shortcodes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▼0.54 | 19.74 ▼39.89 |
Dashboard /wp-admin | 2.99 ▼0.42 | 18.91 ▼18.43 |
Posts /wp-admin/edit.php | 2.99 ▼0.65 | 17.97 ▼22.28 |
Add New Post /wp-admin/post-new.php | 2.99 ▼3.98 | 16.83 ▼1,311.75 |
Media Library /wp-admin/upload.php | 2.99 ▼0.30 | 15.72 ▼20.30 |
Shortcodes /wp-admin/options-general.php?page=synved_shortcode_synved_shortcode | 2.99 | 20.59 |
Server storage [IO: ▲1.31MB] [DB: ▲0.05MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 120 new files
Database: no new tables, 1 new option
New WordPress options |
---|
synved_connect_install_date |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,023 ▲269 | 17.60 ▲1.82 | 14.58 ▲7.61 | 2.74 ▼0.30 |
Dashboard /wp-admin | 2,973 ▲115 | 6.88 ▲0.79 | 137.42 ▼3.77 | 216.59 ▲59.89 |
Posts /wp-admin/edit.php | 2,697 ▲6 | 3.25 ▲0.02 | 82.76 ▲13.21 | 144.53 ▲4.45 |
Add New Post /wp-admin/post-new.php | 1,685 ▲24 | 16.33 ▲0.21 | 407.21 ▼52.33 | 226.64 ▲57.81 |
Media Library /wp-admin/upload.php | 1,697 ▼1 | 5.96 ▲0.42 | 172.60 ▲26.79 | 237.46 ▲43.10 |
Shortcodes /wp-admin/options-general.php?page=synved_shortcode_synved_shortcode | 1,285 | 3.08 | 80.98 | 258.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/synved-shortcodes/synved-shortcode/synved-shortcode-item.php+204
preg_match(): No ending delimiter '.' found
- This plugin did not uninstall successfully, leaving 1 option in the database
- synved_connect_install_date
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 22 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=synved_shortcode_synved_shortcode
- > Warning in wp-content/plugins/synved-shortcodes/synved-shortcode/synved-shortcode-item.php+204
preg_match(): No ending delimiter '.' found
- 23 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=synved_shortcode_synved_shortcode
- > Deprecated in wp-content/plugins/synved-shortcodes/synved-option/synved-option.php+601
Function create_function() is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/synved-shortcodes/synved-connect/synved-connect.php:212
- > PHP Fatal error
Uncaught Error: Call to undefined function synved_option_callback() in wp-content/plugins/synved-shortcodes/synved-shortcode/synved-shortcode-setup.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/synved-shortcodes/synved-connect/synved-connect.php:212
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/synved-shortcodes/synved-option/synved-option.php:1124
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/synved-shortcodes/synved-option/addons/option-type-addon/option-type-addon.php:194
- > PHP Fatal error
Uncaught Error: Call to undefined function synved_option_callback() in wp-content/plugins/synved-shortcodes/synved-shortcode/synved-shortcode-setup.php:7
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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 your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This is the Shortcodes Editor that pops up in the edit post interface), #2 (Another example of the Shortcodes Editor), #3 (An example of creating tabs with the shortcodes and the [SlickPanel skin](http://synved.com/product/wordpress-shortcodes-slickpanel-skin/)), #4 (An example of creating sections with the shortcodes and the [SlickPanel skin](http://synved.com/product/wordpress-shortcodes-slickpanel-skin/)), #5 (An example of creating message boxes with the shortcodes and the [SlickPanel skin](http://synved.com/product/wordpress-shortcodes-slickpanel-skin/)), #6 (An example of a user link shortcode customized as an author card or "vcard"), #7 (Same as the above but using the [SlickPanel skin](http://synved.com/product/wordpress-shortcodes-slickpanel-skin/)), #8 (How the [SlickPanel skin](http://synved.com/product/wordpress-shortcodes-slickpanel-skin/ "Transform the look of many elements in the Shortcodes plugin!") will transform the look of the shortcodes), #9 (Another example of the Shortcodes Editor with the full list of shortcodes (using the old interface)), #10 (Another example of the Shortcodes Editor showing a partial list of some of the shortcodes (using the new interface))
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
synved-shortcodes/synved-wp-shortcodes.php 85% from 13 tests
The principal PHP file in "WordPress Shortcodes" v. 1.6.36 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("synved-shortcodes.php" instead of "synved-wp-shortcodes.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected10,613 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 1,474 | 172 | 6,050 |
JavaScript | 24 | 408 | 295 | 2,921 |
CSS | 11 | 89 | 111 | 1,642 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 1 | 11.11% |
▷ Private methods | 0 | 0.00% |
Functions | 198 | |
▷ Named functions | 198 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 13 | 76.47% |
▷ Class constants | 4 | 23.53% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
55 PNG files occupy 0.71MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
synved-option/jqueryUI/css/snvdopt/images/ui-icons_2e83ff_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
synved-option/jqueryUI/css/snvdopt/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
synved-option/farbtastic/mask.png | 1.97KB | 4.18KB | 0.00% |
synved-connect/image/twitter.png | 1.09KB | 1.05KB | ▼ 3.23% |
synved-shortcode/image/box/info.png | 0.76KB | 0.83KB | 0.00% |