78% encode-decode-tool

Code Review | Encode Decode Tool

WordPress plugin Encode Decode Tool scored78%from 54 tests.

About plugin

  • Plugin page: encode-decode-tool
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1
  • WordPress version: 6.3.1
  • First release: Jun 2, 2020
  • Latest release: Feb 2, 2023
  • Number of updates: 5
  • Update frequency: every 195.0 days
  • Top authors: WeblineIndia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /643 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼11.18ms] Passed 4 tests

An overview of server-side resources used by Encode Decode Tool
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1038.51 ▼4.08
Dashboard /wp-admin3.40 ▲0.0647.85 ▼16.15
Posts /wp-admin/edit.php3.52 ▲0.1650.31 ▼2.65
Add New Post /wp-admin/post-new.php5.99 ▲0.0983.99 ▼21.84
Media Library /wp-admin/upload.php3.33 ▲0.0935.70 ▲1.47
Encode Decode Tool /wp-admin/options-general.php?page=wli-en-de-tool3.3035.16

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
ende_plugin_status
db_upgraded
widget_encode_decode_tool_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Encode Decode Tool
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲18713.87 ▼0.499.56 ▲7.6038.96 ▼5.41
Dashboard /wp-admin2,224 ▲475.79 ▲0.1885.84 ▼3.1639.46 ▼2.35
Posts /wp-admin/edit.php2,131 ▲342.25 ▲0.2240.34 ▲0.9735.53 ▲1.03
Add New Post /wp-admin/post-new.php1,555 ▲2723.22 ▲0.05661.17 ▼41.2133.81 ▼24.55
Media Library /wp-admin/upload.php1,423 ▲234.37 ▲0.21104.28 ▼2.7240.54 ▼5.69
Encode Decode Tool /wp-admin/options-general.php?page=wli-en-de-tool1,7153.1166.9632.63

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
The following items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_encode_decode_tool_widget
    • widget_recent-comments
    • can_compress_scripts
    • ende_plugin_status
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Please fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/encode-decode-tool/admin/class-encode-decode-tool-widget.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/encode-decode-tool/public/encode-decode-tool-public.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/encode-decode-tool/admin/class-encode-decode-tool-admin.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=wli-en-de-tool
    • > Network (severe)
    wp-content/plugins/encode-decode-tool/assets/images/logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)

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
6 plugin tags: ascii character, tool, url encoder, url decoder, encode...

encode-decode-tool/encode-decode-tool.php 92% from 13 tests

"Encode Decode Tool" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Success! There were no dangerous files found in this plugin496 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP525691386
CSS24265
JavaScript1281045

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.15
Average class complexity10.50
▷ Minimum class complexity8.00
▷ Maximum class complexity13.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin