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.11MB] [CPU: ▼2.54ms] Passed 4 tests
Analyzing server-side resources used by GP Machine Translate
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.30 ▼0.49 |
Dashboard /wp-admin | 3.42 ▲0.11 | 49.51 ▲0.78 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.06 ▼3.98 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 94.32 ▼6.48 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 40.25 ▲3.79 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for GP Machine Translate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.30 ▼0.06 | 1.68 ▼0.15 | 39.89 ▼1.90 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▼0.03 | 85.85 ▼3.13 | 38.76 ▼6.18 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▼0.03 | 39.60 ▼1.85 | 40.98 ▲5.64 |
Add New Post /wp-admin/post-new.php | 1,554 ▲7 | 18.21 ▼4.95 | 668.90 ▲41.17 | 55.39 ▼0.57 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.28 ▲0.05 | 98.10 ▲2.08 | 45.04 ▲0.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gp-machine-translate/gp-machine-translate.php:767
- > PHP Fatal error
Uncaught Error: Class 'MicrosoftTranslator\\Translate' not found in wp-content/plugins/gp-machine-translate/vendor/natxet/microsoft-translation-api/example/example.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gp-machine-translate/ajax.php:24
- > PHP Fatal error
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
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
8 plugin tags: translate, glotpress plugin, yandex, google, bing...
gp-machine-translate/gp-machine-translate.php Passed 13 tests
The primary PHP file in "GP Machine Translate" version 1.0 is used by WordPress to initiate all plugin functionality
39 characters long description:
Machine Translate plugin for GlotPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,304 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 266 | 396 | 1,152 |
JSON | 3 | 0 | 0 | 83 |
JavaScript | 1 | 5 | 0 | 51 |
Markdown | 1 | 8 | 0 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 20.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 3 | 5.88% |
▷ Public methods | 41 | 80.39% |
▷ Protected methods | 3 | 5.88% |
▷ Private methods | 7 | 13.73% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin