Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.36ms] Passed 4 tests
Server-side resources used by WPC Simple Translate
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.05 | 37.07 ▼5.85 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.15 ▼2.44 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.94 ▲0.40 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.46 ▼16.23 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.83 ▼0.92 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPC Simple Translate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲169 | 13.00 ▼1.25 | 1.64 ▼0.30 | 36.37 ▼12.15 |
Dashboard /wp-admin | 2,332 ▲141 | 5.80 ▲0.94 | 92.97 ▼13.59 | 40.61 ▼3.30 |
Posts /wp-admin/edit.php | 2,175 ▲86 | 2.11 ▲0.08 | 36.46 ▼3.37 | 34.63 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,653 ▲111 | 23.07 ▲4.80 | 606.69 ▼36.50 | 35.63 ▼26.81 |
Media Library /wp-admin/upload.php | 1,518 ▲133 | 4.15 ▼0.06 | 90.52 ▼5.87 | 42.76 ▼1.63 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/easy-translate/easy-translate.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-translate/includes/et-deactivate-popup.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/easy-translate/admin/view.php:20
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: internationalization, translation, translators, localisation, multilingual...
easy-translate/easy-translate.php Passed 13 tests
"WPC Simple Translate" version 1.1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
98 characters long description:
This plugin allows you translate page content, sliders, forms, galleries, page builders widgets...
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
No dangerous file extensions were detected376 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 71 | 69 | 248 |
CSS | 1 | 21 | 6 | 100 |
JavaScript | 1 | 11 | 4 | 28 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin