Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼0.95ms] Passed 4 tests
A check of server-side resources used by Ray Enterprise Translation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 45.98 ▼1.48 |
Dashboard /wp-admin | 3.46 ▲0.15 | 56.58 ▲8.84 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 48.73 ▼0.81 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 85.22 ▼5.40 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.74 ▲3.91 |
Server storage [IO: ▲2.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 152 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
lingotek_plugin_version |
db_upgraded |
can_compress_scripts |
lingotek_profiles |
Browser metrics Passed 4 tests
An overview of browser requirements for Ray Enterprise Translation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 14.52 ▲0.13 | 1.73 ▲0.07 | 43.60 ▼0.16 |
Dashboard /wp-admin | 2,229 ▲49 | 5.62 ▼0.00 | 83.00 ▼15.03 | 41.51 ▲0.47 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.25 ▲0.23 | 36.21 ▲2.56 | 33.14 ▼2.57 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.21 ▲0.06 | 638.48 ▼40.75 | 58.75 ▲2.58 |
Media Library /wp-admin/upload.php | 1,437 ▲40 | 4.35 ▲0.16 | 96.58 ▼2.71 | 45.08 ▲1.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- lingotek_plugin_version
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 57× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Lingotek_API' not found in wp-content/plugins/lingotek-translation/admin/settings/view-account.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/lingotek-translation/admin/settings/connect-account.php:33
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lingotek-translation/admin/import/import-table.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Lingotek_Group' not found in wp-content/plugins/lingotek-translation/include/group-string.php:8
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/lingotek-translation/admin/strings-table.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/lingotek-translation/admin/import/import-table.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lingotek-translation/admin/tutorial/faq.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lingotek-translation/admin/tutorial/credits.php:96
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lingotek-translation/admin/settings/view-preferences.php:6
- > PHP Fatal error
Uncaught Error: Class 'Lingotek_Group' not found in wp-content/plugins/lingotek-translation/include/group-term.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
lingotek-translation/lingotek.php 92% from 13 tests
The main PHP file in "Ray Enterprise Translation" ver. 1.6.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lingotek-translation.php" instead of "lingotek.php")
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
Everything looks great! No dangerous files found in this plugin15,382 lines of code in 106 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 66 | 1,530 | 4,137 | 10,878 |
JavaScript | 8 | 290 | 438 | 2,004 |
CSS | 4 | 193 | 54 | 1,274 |
PO File | 1 | 257 | 273 | 673 |
SVG | 23 | 0 | 18 | 409 |
XML | 2 | 5 | 14 | 75 |
YAML | 1 | 7 | 0 | 64 |
Markdown | 1 | 1 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 41.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 3 | 7.14% |
▷ Concrete classes | 39 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 492 | |
▷ Static methods | 81 | 16.46% |
▷ Public methods | 415 | 84.35% |
▷ Protected methods | 44 | 8.94% |
▷ Private methods | 33 | 6.71% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 18 | |
▷ Global constants | 13 | 72.22% |
▷ Class constants | 5 | 27.78% |
▷ Public constants | 5 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
39 PNG files occupy 1.38MB with 0.83MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/tutorial/img/add-page2.png | 3.89KB | 1.99KB | ▼ 48.86% |
admin/tutorial/img/selection-workflow-from-list.png | 50.32KB | 20.82KB | ▼ 58.63% |
admin/tutorial/img/translations-ready-for-download.png | 6.08KB | 2.51KB | ▼ 58.63% |
admin/tutorial/img/check-status.png | 6.61KB | 2.61KB | ▼ 60.52% |
admin/tutorial/img/workbench.png | 73.94KB | 19.93KB | ▼ 73.04% |