83% woo-admin-app-connector

Code Review | Woocommerce Admin App Connector

WordPress plugin Woocommerce Admin App Connector scored83%from 54 tests.

About plugin

  • Plugin page: woo-admin-app-con...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-5.3
  • WordPress version: 6.3.1
  • First release: Mar 14, 2019
  • Latest release: Feb 3, 2020
  • Number of updates: 41
  • Update frequency: every 8.0 days
  • Top authors: phoeniixx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,882 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.55ms] Passed 4 tests

Server-side resources used by Woocommerce Admin App Connector
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.62 ▼0.36
Dashboard /wp-admin3.33 ▼0.0249.75 ▼15.37
Posts /wp-admin/edit.php3.38 ▲0.0249.89 ▲0.94
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.32 ▼19.40
Media Library /wp-admin/upload.php3.25 ▲0.0241.97 ▲7.77

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Woocommerce Admin App Connector: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.17 ▼0.381.83 ▼0.2044.28 ▲0.34
Dashboard /wp-admin2,192 ▲155.63 ▲0.0696.43 ▼3.6343.14 ▲0.86
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0335.52 ▼1.7431.83 ▼4.95
Add New Post /wp-admin/post-new.php1,526 ▼023.24 ▲0.23681.77 ▲0.2964.61 ▼2.45
Media Library /wp-admin/upload.php1,400 ▲34.10 ▼0.10110.44 ▲4.6445.89 ▲2.93

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woo-admin-app-connector/app/phoen-woo-admin-customer_role.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: woo app, app connector, administrator app, woocommerce app, woocommerce...

woo-admin-app-connector/plugin.php 69% from 13 tests

"Woocommerce Admin App Connector" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "2.6.0")
  • Domain Path: The domain path points to an invalid folder, "/i18n/languages/" does not exist
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-admin-app-connector.php" instead of "plugin.php")

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
No dangerous file extensions were detected822 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP725522749
CSS28545
JavaScript10028

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-icons_777777_256x240.png6.94KB4.18KB▼ 39.78%
assets/css/images/ui-icons_444444_256x240.png6.92KB4.18KB▼ 39.61%
assets/css/images/ui-icons_ffffff_256x240.png6.33KB4.18KB▼ 33.99%
assets/css/images/ui-icons_cc0000_256x240.png4.57KB4.18KB▼ 8.43%
assets/css/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%