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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.37MB] [CPU: ▲0.96ms] Passed 4 tests
This is a short check of server-side resources used by Themify Shortcodes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.24 | 38.98 ▼2.36 |
Dashboard /wp-admin | 3.94 ▲0.63 | 57.95 ▲9.32 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 51.84 ▲0.42 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 95.28 ▼1.66 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 40.71 ▲7.45 |
Themify Shortcodes /wp-admin/options-general.php?page=themify-shortcodes | 3.45 | 40.30 |
Server storage [IO: ▲3.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Themify Shortcodes: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 14.83 ▲0.02 | 1.68 ▼0.53 | 42.07 ▼3.10 |
Dashboard /wp-admin | 2,210 ▲22 | 5.84 ▼0.07 | 102.62 ▼10.54 | 39.28 ▼5.09 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.04 | 38.68 ▼1.37 | 35.02 ▼2.98 |
Add New Post /wp-admin/post-new.php | 1,581 ▲48 | 23.35 ▲0.45 | 634.87 ▼47.44 | 53.92 ▲0.45 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.20 ▼0.09 | 93.11 ▼11.17 | 42.80 ▼0.90 |
Themify Shortcodes /wp-admin/options-general.php?page=themify-shortcodes | 861 | 2.05 | 23.00 | 27.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% 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 items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/themify-shortcodes/init.php
- 3× 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/themify-shortcodes/includes/theme-options.php:111
- > PHP Fatal error
Uncaught Error: Call to undefined function is_single() in wp-content/plugins/themify-shortcodes/templates/loop.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/themify-shortcodes/includes/shortcodes.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (16 tag instead of maximum 10)
themify-shortcodes/init.php 92% from 13 tests
The principal PHP file in "Themify Shortcodes" v. 2.0.8 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("themify-shortcodes.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin13,139 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 8,611 |
PHP | 10 | 253 | 452 | 2,212 |
CSS | 5 | 1 | 78 | 2,006 |
JavaScript | 5 | 30 | 15 | 310 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 9.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 7 | 21.88% |
▷ Public methods | 28 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.50% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon.png | 0.72KB | 0.67KB | ▼ 6.41% |