78% convertux-connector

Code Review | Convertux Connector

WordPress plugin Convertux Connector scored78%from 54 tests.

About plugin

  • Plugin page: convertux-connector
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-5.7
  • WordPress version: 6.3.1
  • First release: Apr 8, 2021
  • Latest release: Jul 8, 2021
  • Number of updates: 4
  • Update frequency: every 23.0 days
  • Top authors: convertux (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /386 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.73ms] Passed 4 tests

An overview of server-side resources used by Convertux Connector
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.13 ▲0.21
Dashboard /wp-admin3.33 ▼0.0143.95 ▼17.42
Posts /wp-admin/edit.php3.38 ▲0.0347.97 ▲1.35
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.80 ▼15.12
Media Library /wp-admin/upload.php3.25 ▲0.0333.99 ▼2.60
Convertux /wp-admin/tools.php?page=convertux3.2230.43

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Convertux Connector
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲10313.56 ▼0.822.06 ▲0.3640.95 ▲0.04
Dashboard /wp-admin2,227 ▲394.87 ▼0.14109.78 ▲2.3346.59 ▲1.84
Posts /wp-admin/edit.php2,110 ▲211.99 ▼0.0340.43 ▲1.9836.68 ▲0.16
Add New Post /wp-admin/post-new.php1,557 ▲3818.68 ▼4.55602.30 ▼49.3554.42 ▲1.94
Media Library /wp-admin/upload.php1,412 ▲274.13 ▼0.08103.52 ▼2.4743.08 ▼4.29
Convertux /wp-admin/tools.php?page=convertux8202.0225.0479.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • 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
The following issues need your attention
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/convertux-connector/includes/api/Convertux_API_Abstract_Controller.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/convertux-connector/includes/api/Convertux_API_Abstract_Controller.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/convertux-connector/includes/api/Convertux_API_Abstract_Controller.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/convertux-connector/includes/api/Convertux_API_Abstract_Controller.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/convertux-connector/admin_notice.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/convertux-connector/convertux.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/convertux-connector/js_variables.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/convertux-connector/settings-page.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/tools.php?page=convertux
    • > Network (severe)
    wp-content/plugins/convertux-connector//fonts/Inter-Regular.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/tools.php?page=convertux
    • > Network (severe)
    wp-content/plugins/convertux-connector//fonts/Inter-Regular.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
The official readme.txt is a good inspiration

convertux-connector/convertux.php 92% from 13 tests

This is the main PHP file of "Convertux Connector" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("convertux-connector.php" instead of "convertux.php")

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
Success! There were no dangerous files found in this plugin269 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP96017265
SVG1003
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.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
PNG images were not found in this plugin