Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼295.84ms] Passed 4 tests
This is a short 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.53 ▲0.02 | 59.76 ▲3.27 |
Dashboard /wp-admin | 3.46 ▲0.05 | 41.44 ▲5.01 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 44.46 ▲4.20 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 98.41 ▼1,191.67 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 29.12 ▲0.83 |
Gettext override translations /wp-admin/plugins.php?page=gettext-override-translations | 3.40 | 30.00 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gettext override translations
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,786 ▲42 | 15.68 ▼0.01 | 6.04 ▲0.17 | 2.60 ▲0.32 |
Dashboard /wp-admin | 2,883 ▲28 | 6.14 ▼0.09 | 114.03 ▼22.63 | 155.13 ▼50.46 |
Posts /wp-admin/edit.php | 2,696 ▲5 | 3.24 ▼0.01 | 90.64 ▲25.07 | 141.19 ▼0.54 |
Add New Post /wp-admin/post-new.php | 1,664 ▲3 | 16.24 ▲0.06 | 428.35 ▼5.90 | 160.57 ▼0.05 |
Media Library /wp-admin/upload.php | 1,697 ▲2 | 5.56 ▲0.07 | 154.49 ▲12.17 | 200.36 ▼48.56 |
Gettext override translations /wp-admin/plugins.php?page=gettext-override-translations | 1,251 | 2.90 | 56.24 | 137.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gettext-override-translations/php/frontend.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #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
The main PHP file in "Gettext override translations" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and 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 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin255 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 28 | 21 | 201 |
JavaScript | 1 | 13 | 0 | 36 |
CSS | 1 | 5 | 0 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.50 |
▷ 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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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-5.png | 7.32KB | 3.86KB | ▼ 47.35% |
screenshot-3.png | 3.55KB | 2.33KB | ▼ 34.47% |
screenshot-1.png | 40.95KB | 18.01KB | ▼ 56.01% |
img/delete.png | 0.86KB | 0.86KB | 0.00% |
screenshot-2.png | 34.57KB | 14.62KB | ▼ 57.71% |