Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▲1.51ms] Passed 4 tests
A check of server-side resources used by Phrase Strings
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 36.67 ▼3.10 |
Dashboard /wp-admin | 3.77 ▲0.47 | 51.20 ▼0.14 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 51.99 ▲8.70 |
Add New Post /wp-admin/post-new.php | 7.71 ▲1.82 | 266.54 ▲155.75 |
Media Library /wp-admin/upload.php | 3.63 ▲0.41 | 38.18 ▲0.58 |
Server storage [IO: ▲7.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 1,222 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Phrase Strings
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.15 ▼0.23 | 1.58 ▼0.30 | 41.19 ▼2.27 |
Dashboard /wp-admin | 2,232 ▲54 | 5.57 ▼0.16 | 84.18 ▼18.66 | 38.21 ▼8.03 |
Posts /wp-admin/edit.php | 2,178 ▲78 | 2.02 ▲0.08 | 39.06 ▲0.45 | 34.76 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 24.45 ▲2.77 | 702.70 ▲44.68 | 70.37 ▲23.51 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.39 ▲0.18 | 93.72 ▼7.43 | 43.92 ▲2.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 505× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/phrase/vendor/phrase/phrase-php/test/Model/GlossaryTermCreateParametersTest.php:41
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/phrase/vendor/phrase/phrase-php/test/Model/ProjectMemberSpecificTest.php:41
- > PHP Fatal error
Uncaught Error: Interface 'Phrase\\Model\\ModelInterface' not found in wp-content/plugins/phrase/vendor/phrase/phrase-php/lib/Model/GithubSyncExportParameters.php:41
- > PHP Fatal error
Uncaught Error: Interface 'Phrase\\Model\\ModelInterface' not found in wp-content/plugins/phrase/vendor/phrase/phrase-php/lib/Model/DistributionCreateParameters.php:41
- > PHP Fatal error
Uncaught Error: Interface 'Phrase\\Model\\ModelInterface' not found in wp-content/plugins/phrase/vendor/phrase/phrase-php/lib/Model/ProjectUpdateParameters.php:41
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/phrase/vendor/phrase/phrase-php/test/Model/MemberProjectDetailProjectRolesTest.php:41
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/phrase/vendor/phrase/phrase-php/test/Model/ScreenshotTest.php:41
- > PHP Fatal error
Uncaught Error: Interface 'Phrase\\Model\\ModelInterface' not found in wp-content/plugins/phrase/vendor/phrase/phrase-php/lib/Model/UploadSummary.php:41
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/phrase/vendor/phrase/phrase-php/test/Api/JobCommentsApiTest.php:42
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/phrase/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: translation, languages, multilingual
phrase/phrase.php 92% from 13 tests
The entry point to "Phrase Strings" version 1.2.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.4" instead of "5.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin127,564 lines of code in 947 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 638 | 23,495 | 89,787 | 108,383 |
Markdown | 257 | 6,666 | 0 | 15,725 |
JavaScript | 33 | 319 | 694 | 2,236 |
JSON | 1 | 0 | 0 | 751 |
CSS | 13 | 71 | 0 | 389 |
Bourne Shell | 1 | 14 | 8 | 36 |
XML | 1 | 0 | 0 | 23 |
YAML | 2 | 0 | 0 | 17 |
SVG | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 19.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 658.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 88.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 27 | |
Traits | 3 | |
Classes | 587 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 587 | 100.00% |
▷ Final classes | 35 | 5.96% |
Methods | 10,045 | |
▷ Static methods | 1,682 | 16.74% |
▷ Public methods | 9,585 | 95.42% |
▷ Protected methods | 333 | 3.32% |
▷ Private methods | 127 | 1.26% |
Functions | 870 | |
▷ Named functions | 64 | 7.36% |
▷ Anonymous functions | 806 | 92.64% |
Constants | 287 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 287 | 100.00% |
▷ Public constants | 275 | 95.82% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
262 compressed PNG files occupy 0.19MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/flags/NU.png | 1.08KB | 1.11KB | 0.00% |
assets/images/flags/_gosquared.png | 0.53KB | 0.54KB | 0.00% |
assets/images/flags/_somaliland.png | 1.45KB | 1.25KB | ▼ 14.37% |
assets/images/flags/MW.png | 0.67KB | 0.74KB | 0.00% |
assets/images/flags/BB.png | 0.29KB | 0.31KB | 0.00% |