84% extendago-wp-connection

Code Review | Extendago Woocommerce

WordPress plugin Extendago Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: extendago-wp-conn...
  • Plugin version: 1.4.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Feb 28, 2022
  • Latest release: Oct 30, 2023
  • Number of updates: 55
  • Update frequency: every 11.1 days
  • Top authors: extendago (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,994 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
Installer ran successfully

Server metrics [RAM: ▲0.88MB] [CPU: ▲0.75ms] Passed 4 tests

This is a short check of server-side resources used by Extendago Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.35 ▲0.8843.37 ▲0.07
Dashboard /wp-admin4.22 ▲0.9156.71 ▼0.25
Posts /wp-admin/edit.php4.27 ▲0.9149.79 ▼0.24
Add New Post /wp-admin/post-new.php6.76 ▲0.8794.67 ▲3.42
Media Library /wp-admin/upload.php4.08 ▲0.8445.00 ▲11.69

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Extendago Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲7614.36 ▼0.352.23 ▲0.3337.24 ▼6.22
Dashboard /wp-admin2,273 ▲935.57 ▼0.0687.79 ▼11.0378.71 ▲37.10
Posts /wp-admin/edit.php2,179 ▲792.11 ▼0.0137.66 ▼2.5232.65 ▼2.47
Add New Post /wp-admin/post-new.php1,591 ▲5320.21 ▼2.95579.87 ▼50.70149.09 ▲90.48
Media Library /wp-admin/upload.php1,478 ▲844.16 ▲0.0097.46 ▲0.5576.51 ▲32.55

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
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 __() in wp-content/plugins/extendago-wp-connection/includes/admin/partials/extendago_wp_connection_settings_page.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 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: extenda, pos, extendago, woocommerce, arture

extendago-wp-connection/extendago-wp-connection.php 92% from 13 tests

This is the main PHP file of "Extendago Woocommerce" version 1.4.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 222 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin5,217 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP129303454,484
CSS33117457
JavaScript67542275
SVG1001

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 101)
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity91.30
▷ Minimum class complexity1.00
▷ Maximum class complexity316.00
Average method complexity7.40
▷ Minimum method complexity1.00
▷ Maximum method complexity101.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods141
▷ Static methods00.00%
▷ Public methods13495.04%
▷ Protected methods00.00%
▷ Private methods74.96%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.15MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/img/woocommerce.png145.82KB69.06KB▼ 52.64%
includes/admin/img/extendago.png6.14KB5.88KB▼ 4.17%