Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▲3.00ms] Passed 4 tests
Analyzing server-side resources used by Shortcodes Generator by TechRadar Việt Nam
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 44.05 ▲2.65 |
Dashboard /wp-admin | 3.68 ▲0.38 | 53.35 ▲3.53 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 52.06 ▲5.74 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.40 | 88.55 ▲0.07 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 44.47 ▲8.39 |
Server storage [IO: ▲1.75MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Shortcodes Generator by TechRadar Việt Nam
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲151 | 13.95 ▼0.19 | 12.64 ▲10.33 | 52.18 ▲4.94 |
Dashboard /wp-admin | 2,218 ▲15 | 5.86 ▼0.01 | 99.83 ▼18.72 | 39.03 ▼6.87 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.00 ▲0.03 | 36.68 ▼2.21 | 33.97 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.12 ▲5.49 | 693.83 ▲7.90 | 65.20 ▲13.65 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.22 ▼0.04 | 111.01 ▼3.22 | 48.46 ▼0.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/shortcodes-generator-by-techradar-viet-nam/inc/admin/fields/icon.php
- 52× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: html_class in wp-content/plugins/shortcodes-generator-by-techradar-viet-nam/templates/zf_span.php on line 5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/shortcodes-generator-by-techradar-viet-nam/templates/zf_image.php:5
- > PHP Notice
Undefined variable: size in wp-content/plugins/shortcodes-generator-by-techradar-viet-nam/templates/zf_icon.php on line 9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/shortcodes-generator-by-techradar-viet-nam/templates/zf_strong.php:8
- > PHP Notice
Undefined variable: key in wp-content/plugins/shortcodes-generator-by-techradar-viet-nam/inc/admin/fields/icon.php on line 2167
- > PHP Notice
Undefined variable: icon in wp-content/plugins/shortcodes-generator-by-techradar-viet-nam/templates/zf_icon.php on line 4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/shortcodes-generator-by-techradar-viet-nam/templates/zf_section.php:4
- > PHP Notice
Undefined variable: html_class in wp-content/plugins/shortcodes-generator-by-techradar-viet-nam/templates/zf_strong.php on line 5
- > PHP Notice
Undefined variable: html_class in wp-content/plugins/shortcodes-generator-by-techradar-viet-nam/templates/zf_p.php on line 6
- > PHP Notice
Undefined variable: icon in wp-content/plugins/shortcodes-generator-by-techradar-viet-nam/templates/zf_icon.php on line 6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Contributors: The plugin contributors field is not present
- Screenshots: Please add an image for screenshot #2 (Base on bootstrap 3)
shortcodes-generator-by-techradar-viet-nam/zf-shortcodes.php 85% from 13 tests
The principal PHP file in "Shortcodes Generator by TechRadar Việt Nam" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("shortcodes-generator-by-techradar-viet-nam.php" instead of "zf-shortcodes.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected21,113 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 596 | 104 | 12,430 |
JavaScript | 10 | 1,135 | 443 | 3,738 |
PHP | 33 | 1,162 | 271 | 3,541 |
SVG | 2 | 0 | 0 | 853 |
PO File | 1 | 161 | 222 | 299 |
Sass | 1 | 81 | 3 | 252 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 15.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 39 | 97.50% |
▷ Protected methods | 1 | 2.50% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/assets/images/ui-icons_222222_256x240.png | 6.84KB | 4.18KB | ▼ 38.88% |