Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.24MB] [CPU: ▼6.40ms] Passed 4 tests
Analyzing server-side resources used by SLUG TRANSLATER
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 46.79 ▲1.54 |
Dashboard /wp-admin | 3.61 ▲0.26 | 56.31 ▼7.51 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 49.61 ▼9.75 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 89.77 ▼9.88 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 44.56 ▲9.03 |
SLUG TRANSLATER /wp-admin/options-general.php?page=sl_trans_menu | 3.43 | 39.62 |
Server storage [IO: ▲7.91MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,250 new files
Database: no new tables, 9 new options
New WordPress options |
---|
sl_trans_tax_check |
sl_trans_timing_check |
widget_recent-comments |
db_upgraded |
sl_trans_type_check |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by SLUG TRANSLATER
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲60 | 13.59 ▼0.38 | 2.24 ▲0.41 | 44.02 ▲2.70 |
Dashboard /wp-admin | 2,209 ▲18 | 5.79 ▲0.94 | 98.52 ▼3.12 | 36.35 ▼9.08 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.05 ▼0.01 | 34.31 ▼7.15 | 38.01 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,519 ▼2 | 17.69 ▼5.71 | 692.74 ▲15.66 | 55.01 ▲2.59 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▲0.02 | 105.79 ▼0.86 | 45.25 ▼2.34 |
SLUG TRANSLATER /wp-admin/options-general.php?page=sl_trans_menu | 994 | 2.08 | 22.26 | 28.91 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 609× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/slug-translater/vendor/google/protobuf/src/Google/Protobuf/Internal/MethodDescriptorProto.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/slug-translater/vendor/google/common-protos/src/Api/Expr/V1alpha1/Explain.php:17
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\\JsonFormatter' not found in wp-content/plugins/slug-translater/vendor/monolog/monolog/src/Monolog/Formatter/LogmaticFormatter.php:21
- > PHP Fatal error
Trait 'Google\\Cloud\\Core\\RequestWrapperTrait' not found in wp-content/plugins/slug-translater/vendor/google/cloud-core/src/GrpcRequestWrapper.php on line 35
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/slug-translater/vendor/google/common-protos/src/Api/Expr/V1beta1/Expr/CreateList.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/slug-translater/vendor/google/common-protos/src/Api/Expr/V1alpha1/EvalResponse.php:16
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/slug-translater/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/slug-translater/vendor/google/common-protos/src/Api/Billing/BillingDestination.php:17
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/slug-translater/vendor/google/cloud-translate/src/V3/BatchTranslateTextRequest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\GroupHandler' not found in wp-content/plugins/slug-translater/vendor/monolog/monolog/src/Monolog/Handler/FallbackGroupHandler.php:24
- > 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 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: post, slug, custom, category, japanese...
slug-translater/slug_translater.php 85% from 13 tests
Analyzing the main PHP file in "SLUG TRANSLATER" version 1.2.0
It is important to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: The principal plugin file should be the same as the plugin slug ("slug-translater.php" instead of "slug_translater.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/slug-translater/vendor/bin/google-cloud-batch.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,094 | 15,141 | 67,619 | 64,739 |
Markdown | 46 | 2,007 | 0 | 5,809 |
JSON | 34 | 1 | 0 | 3,230 |
PO File | 1 | 37 | 37 | 105 |
Protocol Buffers | 2 | 14 | 38 | 64 |
XML | 3 | 0 | 1 | 51 |
YAML | 3 | 13 | 0 | 49 |
CSS | 1 | 1 | 1 | 46 |
Bourne Shell | 2 | 4 | 0 | 14 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 436.00 |
Average method complexity | 1.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 152 | |
Interfaces | 65 | |
Traits | 66 | |
Classes | 930 | |
▷ Abstract classes | 18 | 1.94% |
▷ Concrete classes | 912 | 98.06% |
▷ Final classes | 42 | 4.61% |
Methods | 6,087 | |
▷ Static methods | 620 | 10.19% |
▷ Public methods | 5,265 | 86.50% |
▷ Protected methods | 299 | 4.91% |
▷ Private methods | 523 | 8.59% |
Functions | 269 | |
▷ Named functions | 89 | 33.09% |
▷ Anonymous functions | 180 | 66.91% |
Constants | 555 | |
▷ Global constants | 10 | 1.80% |
▷ Class constants | 545 | 98.20% |
▷ Public constants | 493 | 90.46% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin