Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/bing-website-translator/classes/common.class.php+972
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.67MB] [CPU: ▼51.39ms] Passed 4 tests
Analyzing server-side resources used by Prisna BT - Bing Translator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.32 ▼1.14 | 5.18 ▼38.86 |
Dashboard /wp-admin | 2.34 ▼0.96 | 7.21 ▼43.32 |
Posts /wp-admin/edit.php | 2.35 ▼1.02 | 8.02 ▼40.31 |
Add New Post /wp-admin/post-new.php | 2.34 ▼3.55 | 6.43 ▼83.05 |
Media Library /wp-admin/upload.php | 2.34 ▼0.89 | 6.93 ▼31.77 |
Prisna BT - Bing Translator /wp-admin/plugins.php?page=prisna-bing-website-translator-settings | 2.45 | 6.32 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 147 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_prisna-bing-website-translator |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Prisna BT - Bing Translator: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.32 ▲0.11 | 1.70 ▲0.01 | 39.59 ▼6.79 |
Dashboard /wp-admin | 2,198 ▲21 | 5.54 ▼0.14 | 86.87 ▼5.10 | 39.36 ▼2.55 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.02 ▲0.03 | 33.75 ▼2.26 | 35.16 ▼6.36 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.27 ▲0.15 | 671.37 ▼18.03 | 65.80 ▲9.71 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.02 | 102.92 ▼14.70 | 42.64 ▼7.25 |
Prisna BT - Bing Translator /wp-admin/plugins.php?page=prisna-bing-website-translator-settings | 4,150 | 4.12 | 88.44 | 119.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/bing-website-translator/classes/common.class.php+972
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_prisna-bing-website-translator
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 7 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=prisna-bing-website-translator-settings
- > Deprecated in wp-content/plugins/bing-website-translator/classes/common.class.php+1058
Array and string offset access syntax with curly braces is deprecated
- > GET request to /wp-admin/plugins.php?page=prisna-bing-website-translator-settings
- > Warning in wp-content/plugins/bing-website-translator/classes/admin.class.php+345
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
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 take a closer look at the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bing-website-translator/bing-website-translator.php:18
- > PHP Fatal error
Uncaught Error: Class 'PrisnaBWTItem' not found in wp-content/plugins/bing-website-translator/classes/admin.class.php:149
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/bing-website-translator/classes/admin.class.php on line 345
- > PHP Fatal error
Uncaught Error: Class 'PrisnaBWTItem' not found in wp-content/plugins/bing-website-translator/classes/main.class.php:92
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/bing-website-translator/uninstall.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bing-website-translator/classes/common.class.php:657
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/plugins.php?page=prisna-bing-website-translator-settings
- > Javascript (severe) in unknown
javascript 0:68401 Uncaught DOMException: Blocked a frame with origin "http://www.prisna.net" from accessing a cross-origin frame.
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Screenshot #5 (Upgrade panel.) image not found
- Screenshots: Please describe screenshot #2 in bing-website-translator/assets to your readme.txt
bing-website-translator/bing-website-translator.php 85% from 13 tests
"Prisna BT - Bing Translator" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: The description should be shorter than 140 characters (currently 264 characters long)
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 plugin6,286 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 1,212 | 72 | 2,541 |
SVG | 1 | 0 | 0 | 1,990 |
CSS | 1 | 196 | 1 | 981 |
JavaScript | 2 | 263 | 14 | 600 |
PO File | 1 | 59 | 60 | 174 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 2 | 4.35% |
▷ Concrete classes | 44 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 217 | |
▷ Static methods | 106 | 48.85% |
▷ Public methods | 155 | 71.43% |
▷ Protected methods | 62 | 28.57% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 16 | |
▷ Global constants | 9 | 56.25% |
▷ Class constants | 7 | 43.75% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
21 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo-promote.png | 9.48KB | 3.85KB | ▼ 59.39% |
images/lower_right.png | 1.95KB | 1.53KB | ▼ 21.36% |
images/header.png | 0.14KB | 0.13KB | ▼ 2.14% |
images/tabbed_3.png | 0.21KB | 0.14KB | ▼ 31.13% |
images/logo_white.png | 2.48KB | 2.10KB | ▼ 15.40% |