90% wp-override-translations

Code Review | WP Override String Translations

WordPress plugin WP Override String Translations scored 90% from 54 tests.

About plugin

  • Plugin page: wp-override-trans...
  • Plugin version: 1.5.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Aug 6, 2019
  • Latest release: May 28, 2022
  • Number of updates: 23
  • Update frequency: every 44.7 days
  • Top authors: vluongo (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active / 8,756 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.31ms] Passed 4 tests

An overview of server-side resources used by WP Override String Translations
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0146.12 ▼4.16
Dashboard /wp-admin3.34 ▲0.0447.27 ▼1.00
Posts /wp-admin/edit.php3.39 ▲0.0366.77 ▲13.66
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.86 ▼20.46
Media Library /wp-admin/upload.php3.26 ▲0.0339.35 ▲4.38
WP Override Translations /wp-admin/options-general.php?page=wp-override-translations3.2331.65

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

WP Override String Translations: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.67 ▼0.921.63 ▼0.0542.45 ▼0.54
Dashboard /wp-admin2,210 ▲194.80 ▼0.08108.84 ▲6.0139.97 ▼5.18
Posts /wp-admin/edit.php2,096 ▲41.98 ▼0.0136.87 ▼7.3439.85 ▲0.87
Add New Post /wp-admin/post-new.php1,517 ▼2517.71 ▼0.58703.53 ▲89.8664.32 ▲9.50
Media Library /wp-admin/upload.php1,389 ▲14.23 ▲0.03101.86 ▲0.3144.63 ▼2.22
WP Override Translations /wp-admin/options-general.php?page=wp-override-translations8222.0827.9326.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: ngettext, gettext, woocommerce translate, string translations, override translation

wp-override-translations/index.php 92% from 13 tests

This is the main PHP file of "WP Override String Translations" version 1.5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-override-translations.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin162 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34314141
JavaScript14021

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.33
▷ Minimum class complexity3.00
▷ Maximum class complexity13.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/delete.png0.86KB0.86KB0.00%