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.01MB] [CPU: ▼0.49ms] Passed 4 tests
A check of server-side resources used by Gettext override translations
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 52.03 ▲8.55 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.29 ▼2.07 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.59 ▼3.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 96.75 ▼1.33 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.29 ▲4.77 |
Gettext override translations /wp-admin/plugins.php?page=gettext-override-translations | 3.21 | 40.64 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gettext override translations
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲15 | 13.19 ▲0.00 | 2.09 ▼2.97 | 43.88 ▲3.04 |
Dashboard /wp-admin | 2,213 ▲10 | 5.85 ▼0.01 | 103.40 ▼5.14 | 39.93 ▼1.98 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.03 ▲0.02 | 35.89 ▼5.09 | 33.37 ▼5.27 |
Add New Post /wp-admin/post-new.php | 1,537 ▲3 | 23.34 ▲0.35 | 666.76 ▼122.85 | 50.74 ▼12.67 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.21 ▲0.02 | 104.02 ▲5.16 | 46.44 ▲2.79 |
Gettext override translations /wp-admin/plugins.php?page=gettext-override-translations | 973 | 1.83 | 31.38 | 28.20 |
Uninstaller [IO: ✅] [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-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/gettext-override-translations/gettextoverridetranslations.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Default view), #2 (Override "Save Changes" text with "Store right away"), #3 (WooCommerce "Select option" (dropdown value) setting), #4 (WooCommerce "Select option" (dropdown value) translation result), #5 (WooCommerce "Order notes" setting), #6 (WooCommerce "Order notes" translation result)
gettext-override-translations/gettextoverridetranslations.php 92% from 13 tests
This is the main PHP file of "Gettext override translations" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("gettext-override-translations.php" instead of "gettextoverridetranslations.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
No dangerous file extensions were detected243 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 24 | 21 | 189 |
JavaScript | 1 | 13 | 0 | 36 |
CSS | 1 | 5 | 0 | 18 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 40.95KB | 18.01KB | ▼ 56.01% |
screenshot-4.png | 9.19KB | 3.62KB | ▼ 60.64% |
screenshot-3.png | 3.55KB | 2.33KB | ▼ 34.47% |
img/delete.png | 0.86KB | 0.86KB | 0.00% |
screenshot-5.png | 7.32KB | 3.86KB | ▼ 47.35% |