Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/verbingo-translator/verbingo_settings.php+11
Constant ABSPATH already defined
Server metrics [RAM: ▼1.92MB] [CPU: ▼53.34ms] Passed 4 tests
This is a short check of server-side resources used by Verbingo Translator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.86 ▼36.82 |
Dashboard /wp-admin | 2.09 ▼1.22 | 5.24 ▼47.44 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 6.00 ▼41.24 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.04 ▼87.87 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.57 ▼28.25 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 325 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_ver_selected |
wp_translation |
New WordPress options |
---|
db_upgraded |
widget_verbingo-widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Verbingo Translator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲171 | 13.72 ▼0.66 | 6.48 ▲4.71 | 44.19 ▼8.90 |
Dashboard /wp-admin | 2,210 ▲22 | 4.89 ▼0.99 | 110.70 ▲8.25 | 97.72 ▲56.49 |
Posts /wp-admin/edit.php | 2,108 ▲22 | 2.09 ▲0.08 | 36.31 ▲0.18 | 36.00 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,684 ▲147 | 22.70 ▼0.52 | 670.52 ▼15.46 | 63.93 ▲8.83 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.30 ▲0.08 | 100.64 ▼12.09 | 85.40 ▲37.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/verbingo-translator/verbingo_settings.php+11
Constant ABSPATH already defined
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_translation
- wp_ver_selected
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_verbingo-widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
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 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
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verbingo-translator/verbingo_main.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/verbingo-translator/verbingo_widget_form.php:50
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/verbingo-translator/verbingo_widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verbingo-translator/verbingo_admin.php:444
- > 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
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: translation, verbingo translator, translator, file translation
verbingo-translator/verbingo_settings.php 92% from 13 tests
"Verbingo Translator" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("verbingo-translator.php" instead of "verbingo_settings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,010 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 126 | 64 | 775 |
CSS | 1 | 23 | 8 | 133 |
JavaScript | 1 | 16 | 5 | 102 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 90.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 9.68% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
316 compressed PNG files occupy 0.14MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/flags/tz.png | 0.50KB | 0.72KB | 0.00% |
img/flags/bj.png | 0.30KB | 0.66KB | 0.00% |
img/flags/az.png | 0.41KB | 0.75KB | 0.00% |
img/flags/lt.png | 0.33KB | 0.73KB | 0.00% |
img/flags/mu.png | 0.34KB | 0.73KB | 0.00% |