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.00MB] [CPU: ▼7.62ms] Passed 4 tests
This is a short check of server-side resources used by BEA - Fix Loco Translate
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 40.47 ▼3.10 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.63 ▼13.77 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.36 ▼1.04 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.07 ▼12.55 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.98 ▲5.64 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by BEA - Fix Loco Translate
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.62 ▼1.00 | 1.63 ▼0.64 | 41.27 ▼9.11 |
Dashboard /wp-admin | 2,209 ▲18 | 4.85 ▼1.01 | 105.27 ▲5.69 | 36.14 ▼2.94 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.01 | 38.59 ▲4.56 | 33.87 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,522 ▲3 | 23.25 ▼0.17 | 630.66 ▼42.58 | 54.55 ▼4.95 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.11 | 95.23 ▲1.22 | 40.87 ▼2.16 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- 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
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/bea-fix-loco-translate/bea-fix-loco-translate.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: mu-plugin, loco translate, loco translate add-on
bea-fix-loco-translate/bea-fix-loco-translate.php Passed 13 tests
The entry point to "BEA - Fix Loco Translate" version 1.1.1 is a PHP file that has certain tags in its header comment area
42 characters long description:
Improve Loco Translate's plugin behaviour.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin365 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 81 | 212 | 364 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 3 | 10.71% |
▷ Public methods | 27 | 96.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.57% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin