78% wpml-translation-check

Code Review | WPML Translation Check

WordPress plugin WPML Translation Check scored78%from 54 tests.

About plugin

  • Plugin page: wpml-translation-...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: Oct 27, 2014
  • Latest release: Aug 18, 2015
  • Number of updates: 14
  • Update frequency: every 21.2 days
  • Top authors: gcomes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /6,959 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.09ms] Passed 4 tests

An overview of server-side resources used by WPML Translation Check
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.70 ▼1.16
Dashboard /wp-admin3.31 ▲0.0054.98 ▲3.12
Posts /wp-admin/edit.php3.36 ▲0.0050.85 ▼3.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.24 ▼14.46
Media Library /wp-admin/upload.php3.23 ▲0.0043.58 ▲5.78

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

WPML Translation Check: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.132.38 ▲0.7438.94 ▼2.36
Dashboard /wp-admin2,195 ▲185.63 ▼0.0184.51 ▼3.7740.14 ▼7.39
Posts /wp-admin/edit.php2,103 ▲32.03 ▼0.1240.01 ▼1.0336.04 ▼2.39
Add New Post /wp-admin/post-new.php1,531 ▼622.97 ▼0.08659.80 ▼20.1959.25 ▲6.86
Media Library /wp-admin/upload.php1,403 ▲64.19 ▼0.0298.99 ▼21.7843.75 ▼7.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wpml-translation-check/inc/content_tabs.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wpml-translation-check/index.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

wpml-translation-check/index.php 92% from 13 tests

Analyzing the main PHP file in "WPML Translation Check" version 1.1.2
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wpml-translation-check.php" instead of "index.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
There were no executable files found in this plugin593 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP511913515
CSS121078

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.50
▷ Minimum class complexity6.00
▷ Maximum class complexity11.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/debelop.png0.70KB0.73KB0.00%
img/plugin-icon.png0.48KB0.63KB0.00%
img/plugin-icon-white.png0.48KB0.63KB0.00%