Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼5.30ms] Passed 4 tests
This is a short check of server-side resources used by Translation.Pro
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 39.23 ▼1.32 |
Dashboard /wp-admin | 3.47 ▲0.12 | 54.67 ▼7.91 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 49.15 ▼2.51 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 91.56 ▼9.47 |
Media Library /wp-admin/upload.php | 3.40 ▲0.16 | 44.81 ▲6.60 |
Dashboard /wp-admin/admin.php?page=cltp | 3.34 | 31.45 |
Settings /wp-admin/admin.php?page=cltp&action=settings | 3.38 | 35.99 |
New Translation /wp-admin/admin.php?page=cltp&action=new_translation | 3.34 | 37.45 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 329 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Translation.Pro: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 14.77 ▲0.39 | 1.81 ▲0.10 | 44.83 ▲2.30 |
Dashboard /wp-admin | 2,218 ▲38 | 4.92 ▼0.78 | 95.40 ▲9.65 | 82.22 ▲37.59 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.30 ▲0.28 | 32.30 ▼7.01 | 34.96 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,712 ▲172 | 22.37 ▼0.90 | 710.46 ▲8.33 | 30.21 ▼37.41 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.39 ▲0.14 | 108.94 ▲0.66 | 80.06 ▲32.50 |
Dashboard /wp-admin/admin.php?page=cltp | 1,597 | 2.84 | 30.56 | 47.11 |
Settings /wp-admin/admin.php?page=cltp&action=settings | 925 | 1.87 | 27.00 | 34.40 |
New Translation /wp-admin/admin.php?page=cltp&action=new_translation | 1,597 | 2.68 | 32.64 | 40.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=cltp
- > Notice in wp-content/plugins/translation-pro/includes/admin/translation-pro-admin-pages-trait.php+17
Undefined index: action
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cltp&action=new_translation
- > User deprecated in wp-includes/class-requests.php+24
The PSR-0 `Requests_...` class names in the Requests library are deprecated. Switch to the PSR-4 `WpOrg\Requests\...` class names at your earliest convenience.
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/translation-pro/admin/partials/view_article.php
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/translation-pro/admin/partials/settings.php:11
- > PHP Notice
Undefined variable: order in wp-content/plugins/translation-pro/admin/partials/view_article.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/translation-pro/admin/partials/new_translation.php:2
- > PHP Notice
Undefined variable: order in wp-content/plugins/translation-pro/admin/partials/view_article.php on line 62
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/translation-pro/includes/admin/class-translation-pro-article-list.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/translation-pro/admin/partials/dashboard.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/translation-pro/admin/partials/view_article.php on line 2
- > PHP Notice
Undefined variable: order in wp-content/plugins/translation-pro/admin/partials/view_article.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Contentlocalized\\ContentlocalizedAPI' not found in wp-content/plugins/translation-pro/admin/partials/balance.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/translation-pro/admin/partials/view_article.php on line 62
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Donate link: Invalid URI ("https:/contentlocalized.com")
translation-pro/translation-pro.php 92% from 13 tests
Analyzing the main PHP file in "Translation.Pro" version 1.0.0
You should first fix the following items:
- 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 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,125 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 187 | 6 | 997 |
PHP | 16 | 228 | 533 | 944 |
JavaScript | 2 | 41 | 4 | 184 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 14 | 26.92% |
▷ Public methods | 44 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 15.38% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
304 PNG files occupy 0.27MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/flags_iso/16/gq.png | 0.52KB | 0.53KB | 0.00% |
admin/img/flags_iso/16/cd.png | 0.61KB | 0.71KB | 0.00% |
admin/img/flags_iso/16/om.png | 0.44KB | 0.46KB | 0.00% |
admin/img/flags_iso/16/cx.png | 3.95KB | 0.62KB | ▼ 84.36% |
admin/img/flags_iso/16/lr.png | 0.45KB | 0.40KB | ▼ 10.07% |