84% force-update-translations

Code Review | Force Update Translations

WordPress plugin Force Update Translations scored84%from 54 tests.

About plugin

  • Plugin page: force-update-tran...
  • Plugin version: 0.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Aug 29, 2018
  • Latest release: Oct 8, 2023
  • Number of updates: 48
  • Update frequency: every 38.9 days
  • Top authors: mayukojpn (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /14,600 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.39MB] [CPU: ▼5.05ms] Passed 4 tests

An overview of server-side resources used by Force Update Translations
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3936.20 ▲0.56
Dashboard /wp-admin3.69 ▲0.3945.17 ▼5.29
Posts /wp-admin/edit.php3.80 ▲0.4549.22 ▲1.27
Add New Post /wp-admin/post-new.php6.27 ▲0.3978.68 ▼16.71
Media Library /wp-admin/upload.php3.61 ▲0.3936.26 ▲1.25

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Force Update Translations
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.22 ▼0.361.91 ▲0.3738.16 ▼2.88
Dashboard /wp-admin2,195 ▲215.65 ▲0.0794.89 ▲10.0141.74 ▼0.12
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0239.49 ▲3.7637.42 ▲0.00
Add New Post /wp-admin/post-new.php1,526 ▼223.67 ▲0.54669.38 ▼1.9960.93 ▲8.81
Media Library /wp-admin/upload.php1,403 ▲64.31 ▲0.1494.51 ▲0.1539.66 ▼1.20

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_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/force-update-translations/inc/plugins.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Force_Update_Translations' not found in wp-content/plugins/force-update-translations/inc/plugins.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Force_Update_Translations' not found in wp-content/plugins/force-update-translations/inc/themes.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: translation

force-update-translations/force-update-translations.php 92% from 13 tests

This is the main PHP file of "Force Update Translations" version 0.5, 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:
  • Description: The description should be shorter than 140 characters (currently 170 characters long)

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
Success! There were no dangerous files found in this plugin2,622 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP43301302,622

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity9.40
▷ Minimum class complexity7.00
▷ Maximum class complexity16.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods25
▷ Static methods624.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin