84% denade-translate

Code Review | Direct Link Translator

WordPress plugin Direct Link Translator scored84%from 54 tests.

About plugin

  • Plugin page: denade-translate
  • Plugin version: 0.1.8.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6
  • WordPress version: 6.3.1
  • First release: Nov 19, 2020
  • Latest release: Dec 21, 2020
  • Number of updates: 16
  • Update frequency: every 2.0 days
  • Top authors: djinnznathan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /488 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.01MB] [CPU: ▼6.51ms] Passed 4 tests

This is a short check of server-side resources used by Direct Link Translator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.93 ▼0.78
Dashboard /wp-admin3.32 ▲0.0242.89 ▼9.39
Posts /wp-admin/edit.php3.37 ▲0.0147.75 ▼6.90
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.67 ▼8.98
Media Library /wp-admin/upload.php3.24 ▲0.0133.91 ▲1.52

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Direct Link Translator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.27 ▼1.091.63 ▲0.0444.34 ▲2.80
Dashboard /wp-admin2,203 ▲155.79 ▲0.9296.54 ▼26.2439.02 ▼7.28
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0139.03 ▼11.7436.88 ▼11.50
Add New Post /wp-admin/post-new.php1,542 ▼018.15 ▼0.18622.78 ▼7.3857.71 ▲6.52
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.1096.70 ▲1.9840.83 ▼0.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at 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_shortcode() in wp-content/plugins/denade-translate/denade-translate.php:27

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: google, translate, deepl, yandex, baidu

denade-translate/denade-translate.php Passed 13 tests

The main PHP script in "Direct Link Translator" version 0.1.8.1 is automatically included on every request by WordPress
43 characters long description:
Generates a link to the translation service

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected78 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1111741
Markdown110037

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin