94% debug-mo-translations

Code Review | Debug MO Translations

WordPress plugin Debug MO Translations scored 94% from 54 tests.

About plugin

  • Plugin page: debug-mo-translat...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8.2
  • WordPress version: 5.8.1
  • First release: Sep 7, 2015
  • Latest release: Nov 18, 2021
  • Number of updates: 15
  • Update frequency: every 150.9 days
  • Top authors: closemarketing (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

10+ active / 4,006 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼141.80ms] Passed 4 tests

An overview of server-side resources used by Debug MO Translations
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1447.20 ▲21.26
Dashboard /wp-admin3.09 ▲0.0457.78 ▲4.08
Posts /wp-admin/edit.php3.18 ▲0.0750.86 ▼2.65
Add New Post /wp-admin/post-new.php5.45 ▲0.0299.65 ▼569.69
Media Library /wp-admin/upload.php3.03 ▲0.0339.94 ▲1.05

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Debug MO Translations
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,291 ▲69515.97 ▲0.5610.24 ▲1.0978.59 ▲24.91
Dashboard /wp-admin3,360 ▲4266.18 ▲0.24180.27 ▲1.47137.05 ▲14.89
Posts /wp-admin/edit.php3,255 ▲5162.74 ▲0.0273.32 ▲1.2397.65 ▲4.89
Add New Post /wp-admin/post-new.php2,075 ▲57716.12 ▼2.70439.86 ▲32.63118.04 ▲0.33
Media Library /wp-admin/upload.php2,083 ▲2764.94 ▼0.11177.51 ▲9.47136.26 ▲10.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× 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/debug-mo-translations/debug-mo-translations.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: The official readme.txt is a good inspiration

debug-mo-translations/debug-mo-translations.php Passed 13 tests

The main PHP file in "Debug MO Translations" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
Get translation data: language, files, possible problems.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin154 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13696154

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity4.67
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods675.00%
▷ Protected methods225.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