Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.51ms] Passed 4 tests
Analyzing server-side resources used by WP Translate Shortcode
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.59 ▼3.78 |
Dashboard /wp-admin | 3.35 ▲0.04 | 47.80 ▼3.57 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.77 ▲4.42 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.39 ▼1.46 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.16 ▼1.22 |
WP Translate /wp-admin/options-general.php?page=wptr-setting | 3.23 | 34.00 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP Translate Shortcode: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 14.35 ▼0.38 | 2.01 ▲0.03 | 43.05 ▼3.09 |
Dashboard /wp-admin | 2,196 ▲19 | 5.48 ▼0.25 | 85.87 ▼0.98 | 40.68 ▲4.58 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▲0.03 | 36.56 ▼4.00 | 34.15 ▼0.87 |
Add New Post /wp-admin/post-new.php | 1,538 ▲3 | 18.51 ▲0.39 | 614.63 ▼12.82 | 60.80 ▼6.01 |
Media Library /wp-admin/upload.php | 1,398 ▲4 | 4.17 ▼0.05 | 98.82 ▼7.23 | 46.78 ▲4.35 |
WP Translate /wp-admin/options-general.php?page=wptr-setting | 883 | 1.99 | 24.45 | 31.08 |
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
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-translate-shortcode/wp-translate-shortcode.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
wp-translate-shortcode/wp-translate-shortcode.php Passed 13 tests
The main file in "WP Translate Shortcode" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
74 characters long description:
It is a WordPress plugin that makes translate style easily with Shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected293 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 56 | 34 | 142 |
PO File | 1 | 37 | 72 | 105 |
Sass | 1 | 8 | 3 | 45 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot 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.17 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin