Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.89ms] Passed 4 tests
This is a short check of server-side resources used by Translation connectors
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.85 ▲0.49 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.16 ▼1.06 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.42 ▲0.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.79 ▼11.27 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.58 ▲1.42 |
Server storage [IO: ▲2.72MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 931 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Translation connectors
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 14.74 ▲0.51 | 1.85 ▲0.22 | 43.89 ▼1.31 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▼0.04 | 116.38 ▲12.42 | 44.58 ▲1.14 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.04 | 33.49 ▼0.40 | 32.98 ▲1.12 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.64 ▼5.34 | 680.22 ▲20.15 | 64.10 ▲12.98 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.15 ▼0.05 | 92.52 ▼9.24 | 45.40 ▼0.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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× PHP files output text when accessed directly:
- > /wp-content/plugins/translation-connectors/inc/vendor/mustache/mustache/bin/build_bootstrap.php
- 509× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Http\\Discovery\\ClassDiscovery' not found in wp-content/plugins/translation-connectors/inc/vendor/php-http/discovery/src/UriFactoryDiscovery.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\OptionsResolver\\Exception\\ExceptionInterface' not found in wp-content/plugins/translation-connectors/inc/vendor/symfony/options-resolver/Exception/AccessException.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\HttpClient' not found in wp-content/plugins/translation-connectors/inc/vendor/php-http/client-common/src/BatchClient.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/translation-connectors/inc/vendor/mustache/mustache/src/Mustache/Exception/RuntimeException.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Serializer\\Encoder\\EncoderInterface' not found in wp-content/plugins/translation-connectors/inc/vendor/symfony/serializer/Encoder/ContextAwareEncoderInterface.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\DependencyInjection\\Loader\\FileLoader' not found in wp-content/plugins/translation-connectors/inc/vendor/symfony/dependency-injection/Loader/DirectoryLoader.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/translation-connectors/inc/vendor/php-http/client-common/src/Plugin/HeaderSetPlugin.php:15
- > PHP Fatal error
Uncaught Error: Class 'SmartCat\\Client\\Resource\\Resource' not found in wp-content/plugins/translation-connectors/inc/vendor/smartcat/smartcat-api/src/SmartCAT/API/Resource/TranslationMemoriesResource.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Config\\Definition\odeInterface' not found in wp-content/plugins/translation-connectors/inc/vendor/symfony/config/Definition/PrototypeNodeInterface.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException' not found in wp-content/plugins/translation-connectors/inc/vendor/symfony/dependency-injection/Exception/ServiceNotFoundException.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
8 plugin tags: bilingual, translation, translators, l10n, i18n...
translation-connectors/translation-connectors.php Passed 13 tests
"Translation connectors" version 2.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
48 characters long description:
WordPress integration to translation connectors.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin52,219 lines of code in 890 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 787 | 9,960 | 27,299 | 44,654 |
Markdown | 42 | 1,467 | 0 | 3,246 |
JSON | 28 | 1 | 0 | 2,475 |
PO File | 1 | 204 | 205 | 421 |
JavaScript | 1 | 58 | 14 | 360 |
XSD | 2 | 34 | 0 | 310 |
HTML | 12 | 14 | 3 | 223 |
XML | 8 | 21 | 0 | 198 |
YAML | 8 | 42 | 5 | 192 |
CSS | 1 | 34 | 9 | 140 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 112)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 9.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 433.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 112.00 |
Code structure | ||
---|---|---|
Namespaces | 100 | |
Interfaces | 103 | |
Traits | 42 | |
Classes | 626 | |
▷ Abstract classes | 31 | 4.95% |
▷ Concrete classes | 595 | 95.05% |
▷ Final classes | 86 | 14.45% |
Methods | 3,662 | |
▷ Static methods | 244 | 6.66% |
▷ Public methods | 3,039 | 82.99% |
▷ Protected methods | 212 | 5.79% |
▷ Private methods | 411 | 11.22% |
Functions | 160 | |
▷ Named functions | 46 | 28.75% |
▷ Anonymous functions | 114 | 71.25% |
Constants | 170 | |
▷ Global constants | 5 | 2.94% |
▷ Class constants | 165 | 97.06% |
▷ Public constants | 165 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/dashicon.png | 0.43KB | 0.29KB | ▼ 33.03% |