94% wp-translation

Code Review | WP Translation Status

WordPress plugin WP Translation Status scored 94% from 53 tests.

About plugin

  • Plugin page: wp-translation
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 5.8.1
  • First release: Sep 5, 2016
  • Latest release: Sep 5, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: casiepa (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 370 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼268.46ms] Passed 4 tests

Server-side resources used by WP Translation Status
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1241.57 ▲19.37
Dashboard /wp-admin3.06 ▲0.0141.05 ▼4.92
Posts /wp-admin/edit.php3.11 ▲0.0141.64 ▲4.41
Add New Post /wp-admin/post-new.php5.43 ▼0.0087.60 ▼1,064.89
Media Library /wp-admin/upload.php3.01 ▼0.0029.82 ▼8.42

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WP Translation Status
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲6816.19 ▲0.769.47 ▲0.8045.07 ▼6.78
Dashboard /wp-admin2,928 ▲785.90 ▲0.04136.14 ▼19.26105.25 ▼3.34
Posts /wp-admin/edit.php2,703 ▼32.68 ▲0.0061.32 ▼3.4792.32 ▲5.22
Add New Post /wp-admin/post-new.php1,651 ▼20217.18 ▼2.00367.62 ▼17.71107.65 ▲1.93
Media Library /wp-admin/upload.php1,775 ▲35.00 ▼0.01162.30 ▲3.03111.36 ▼8.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

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
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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-translation/includes/cron.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-translation/includes/cron.php:3

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: translation, glotpress

wp-translation/wp-translation.php 92% from 13 tests

The main PHP script in "WP Translation Status" version 0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected211 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP51831211

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.10
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin