Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.46ms] Passed 4 tests
A check of server-side resources used by WP Permalink Persian To English
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 41.03 ▼1.15 |
Dashboard /wp-admin | 3.35 ▲0.04 | 54.20 ▲0.63 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 52.24 ▲2.04 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 96.05 ▼1.16 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.38 ▼0.15 |
مترجم پیوند یکتا /wp-admin/options-general.php?page=permalink-persian-to-english/fa-to-en-translate-admin.php | 3.21 | 31.42 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 11 new options
New WordPress options |
---|
wp_novinweb_translate_clientsecret |
widget_theysaidso_widget |
wp_novinweb_translate_language |
db_upgraded |
wp_novinweb_translate_deactivate |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
wp_novinweb_translate_clientid |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP Permalink Persian To English
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.22 ▼0.51 | 1.70 ▼0.21 | 44.07 ▼0.37 |
Dashboard /wp-admin | 2,199 ▲28 | 5.62 ▼0.05 | 89.15 ▼10.80 | 42.80 ▼3.24 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.01 ▼0.01 | 39.38 ▲2.85 | 39.34 ▲5.39 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.59 ▲0.54 | 676.97 ▼18.69 | 62.68 ▲12.20 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.08 | 92.55 ▼17.13 | 51.20 ▲1.34 |
مترجم پیوند یکتا /wp-admin/options-general.php?page=permalink-persian-to-english/fa-to-en-translate-admin.php | 864 | 1.99 | 21.90 | 56.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 11 options in the database
- wp_novinweb_translate_clientsecret
- wp_novinweb_translate_language
- wp_novinweb_translate_hamahangi
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- wp_novinweb_translate_clientid
- wp_novinweb_translate_deactivate
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=permalink-persian-to-english/fa-to-en-translate-admin.php
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=permalink-persian-to-english/fa-to-en-translate-admin.php
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/permalink-persian-to-english/fa-to-en-translate.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/permalink-persian-to-english/fa-to-en-translate-admin.php:163
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Screenshot 1.2. Screenshot 2.) image missing
permalink-persian-to-english/fa-to-en-translate.php 92% from 13 tests
The entry point to "WP Permalink Persian To English" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("permalink-persian-to-english.php" instead of "fa-to-en-translate.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected198 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 33 | 11 | 198 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 33.33% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 13.33KB | 4.04KB | ▼ 69.71% |
screenshot-2.png | 40.13KB | 18.96KB | ▼ 52.76% |