Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.49ms] Passed 4 tests
A check of server-side resources used by Theme and plugin translation for Polylang (TTfP)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.99 ▼3.43 |
Dashboard /wp-admin | 3.42 ▲0.11 | 48.42 ▼5.69 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.79 ▼3.01 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 94.90 ▼13.81 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 39.68 ▲0.65 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Theme and plugin translation for Polylang (TTfP)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.21 ▼1.17 | 1.76 ▼0.44 | 36.29 ▼12.68 |
Dashboard /wp-admin | 2,209 ▲18 | 4.86 ▼0.03 | 108.20 ▼0.09 | 38.52 ▼4.42 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.14 ▲0.15 | 40.20 ▼2.12 | 35.46 ▼0.45 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 18.41 ▲0.88 | 604.94 ▲8.66 | 62.40 ▲15.05 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.16 ▲0.05 | 104.29 ▲10.18 | 45.70 ▲4.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/theme-translation-for-polylang/polylang-theme-translation.php
- > /wp-content/plugins/theme-translation-for-polylang/theme-translation-for-polylang.php
- > /wp-content/plugins/theme-translation-for-polylang/Polylang_TT_exporter.php
- > /wp-content/plugins/theme-translation-for-polylang/polylang-tt-access.php
- > /wp-content/plugins/theme-translation-for-polylang/Polylang_TT_theme.php
- > /wp-content/plugins/theme-translation-for-polylang/Polylang_TT_importer.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/theme-translation-for-polylang/theme/admin-import-export-page.tpl.php:38
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/theme-translation-for-polylang/theme/admin-import-export-page.tpl.php on line 2
- > PHP Notice
Undefined variable: data in wp-content/plugins/theme-translation-for-polylang/theme/admin-import-export-page.tpl.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
theme-translation-for-polylang/polylang-theme-translation.php 92% from 13 tests
The main PHP file in "Theme and plugin translation for Polylang (TTfP)" ver. 3.4.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("theme-translation-for-polylang.php" instead of "polylang-theme-translation.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin944 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 121 | 160 | 837 |
PO File | 1 | 39 | 27 | 107 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 12.43 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 3 | 10.71% |
▷ Public methods | 21 | 75.00% |
▷ Protected methods | 5 | 17.86% |
▷ Private methods | 2 | 7.14% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin