84% performant-translations

Code Review | Performant Translations

WordPress plugin Performant Translations scored84%from 54 tests.

About plugin

  • Plugin page: performant-transl...
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.4
  • WordPress version: 6.3.1
  • First release: Aug 29, 2023
  • Latest release: Nov 9, 2023
  • Number of updates: 25
  • Update frequency: every 2.9 days
  • Top authors: swissspidy (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

2,000+ active /12,224 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼10.89ms] Passed 4 tests

This is a short check of server-side resources used by Performant Translations
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1436.17 ▼7.02
Dashboard /wp-admin3.44 ▲0.0941.67 ▼16.01
Posts /wp-admin/edit.php3.55 ▲0.2046.41 ▲1.40
Add New Post /wp-admin/post-new.php6.02 ▲0.1383.14 ▼21.92
Media Library /wp-admin/upload.php3.36 ▲0.1338.16 ▲4.68

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Performant Translations
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲4514.35 ▲0.071.62 ▼0.0539.03 ▼3.92
Dashboard /wp-admin2,195 ▲205.58 ▼0.3696.47 ▼15.2442.65 ▼1.24
Posts /wp-admin/edit.php2,097 ▼31.94 ▼0.0039.96 ▲0.4333.93 ▼0.08
Add New Post /wp-admin/post-new.php1,526 ▼322.94 ▼0.19611.23 ▲14.4550.86 ▼3.41
Media Library /wp-admin/upload.php1,400 ▲34.16 ▼0.01100.50 ▲1.4343.78 ▼0.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Ginger_MO_Translation_File' not found in wp-content/plugins/performant-translations/lib/class-ginger-mo-translation-file-php.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Ginger_MO_Translation_File' not found in wp-content/plugins/performant-translations/lib/class-ginger-mo-translation-file-mo.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: i18n, translations, localization, internationalization, performance

performant-translations/performant-translations.php Passed 13 tests

The primary PHP file in "Performant Translations" version 1.0.7 is used by WordPress to initiate all plugin functionality
78 characters long description:
Making internationalization/localization in WordPress faster than ever before.

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
Good job! No executable or dangerous file extensions detected729 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8241599729

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity26.33
▷ Minimum class complexity12.00
▷ Maximum class complexity45.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes00.00%
Methods47
▷ Static methods1123.40%
▷ Public methods3574.47%
▷ Protected methods919.15%
▷ Private methods36.38%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected