Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.92ms] Passed 4 tests
Server-side resources used by Phrase TMS Integration for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.05 ▼1.42 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.98 ▼17.68 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.58 ▲5.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.44 ▼6.44 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.85 ▲1.86 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 78 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Phrase TMS Integration for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.19 | 1.79 ▲0.02 | 44.18 ▼3.49 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▼0.05 | 113.00 ▲10.85 | 41.73 ▲4.62 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.02 | 40.69 ▲3.65 | 35.91 ▲1.97 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.16 ▼0.07 | 676.23 ▼12.47 | 55.15 ▲2.61 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.18 ▼0.05 | 97.44 ▼7.71 | 43.78 ▼2.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 take a closer look at the following
- 24× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Memsource\\Service\\Content\\AbstractPostService' not found in wp-content/plugins/memsource-connector/src/Service/Content/CustomPostService.php:5
- > PHP Fatal error
Uncaught Error: Class 'Memsource\\Service\\Content\\AbstractTermService' not found in wp-content/plugins/memsource-connector/src/Service/Content/CategoryService.php:5
- > PHP Fatal error
Uncaught Error: Class 'Memsource\\Page\\AbstractPage' not found in wp-content/plugins/memsource-connector/src/Page/ConnectorPage.php:9
- > PHP Fatal error
Uncaught Error: Class 'Memsource\\Page\\AbstractPage' not found in wp-content/plugins/memsource-connector/src/Page/LanguageMappingPage.php:8
- > PHP Fatal error
Uncaught Error: Class 'Memsource\\Page\\AbstractPage' not found in wp-content/plugins/memsource-connector/src/Page/AdvancedPage.php:8
- > PHP Fatal error
Uncaught Error: Class 'Memsource\\Service\\Content\\AbstractTermService' not found in wp-content/plugins/memsource-connector/src/Service/Content/TagService.php:5
- > PHP Fatal error
Uncaught Error: Class 'Memsource\\Service\\Content\\AbstractContentService' not found in wp-content/plugins/memsource-connector/src/Service/Content/AbstractTermService.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/memsource-connector/memsource.php:21
- > PHP Fatal error
Uncaught Error: Class 'Memsource\\Service\\Content\\AbstractPostService' not found in wp-content/plugins/memsource-connector/src/Service/Content/ReusableBlockService.php:5
- > PHP Fatal error
Uncaught Error: Class 'Memsource\\Service\\Content\\AbstractPostService' not found in wp-content/plugins/memsource-connector/src/Service/Content/PageService.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: phrase, localisation, wpml, multilingual, localization...
memsource-connector/memsource.php 77% from 13 tests
The main PHP script in "Phrase TMS Integration for WordPress" version 4.5.1 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/locale" does not exist
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("memsource-connector.php" instead of "memsource.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected6,549 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 1,255 | 1,075 | 6,019 |
JSON | 4 | 0 | 0 | 203 |
CSS | 1 | 13 | 0 | 155 |
JavaScript | 2 | 18 | 9 | 154 |
SVG | 2 | 0 | 0 | 18 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 63 | |
▷ Abstract classes | 4 | 6.35% |
▷ Concrete classes | 59 | 93.65% |
▷ Final classes | 4 | 6.78% |
Methods | 419 | |
▷ Static methods | 33 | 7.88% |
▷ Public methods | 336 | 80.19% |
▷ Protected methods | 13 | 3.10% |
▷ Private methods | 70 | 16.71% |
Functions | 34 | |
▷ Named functions | 26 | 76.47% |
▷ Anonymous functions | 8 | 23.53% |
Constants | 76 | |
▷ Global constants | 3 | 3.95% |
▷ Class constants | 73 | 96.05% |
▷ Public constants | 33 | 45.21% |
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