84% parex-bridge-for-quickbooks-xero

Code Review | Parex Bridge for Quickbooks & Xero

WordPress plugin Parex Bridge for Quickbooks & Xero scored84%from 54 tests.

About plugin

  • Plugin page: parex-bridge-for-...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.0
  • WordPress version: 6.3.1
  • First release: Apr 24, 2021
  • Latest release: May 31, 2022
  • Number of updates: 5
  • Update frequency: every 82.2 days
  • Top authors: parextech (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

80+ active /832 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.52ms] Passed 4 tests

A check of server-side resources used by Parex Bridge for Quickbooks & Xero
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.72 ▲1.39
Dashboard /wp-admin3.31 ▲0.0045.77 ▼1.62
Posts /wp-admin/edit.php3.36 ▲0.0043.96 ▼3.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.21 ▼9.20
Media Library /wp-admin/upload.php3.23 ▲0.0035.04 ▲0.06

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Parex Bridge for Quickbooks & Xero
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.57 ▼0.832.05 ▲0.3745.44 ▲3.12
Dashboard /wp-admin2,206 ▲155.83 ▲0.74101.81 ▼2.4537.84 ▼5.11
Posts /wp-admin/edit.php2,086 ▼62.01 ▲0.0036.12 ▼9.2032.14 ▼5.32
Add New Post /wp-admin/post-new.php1,533 ▲1422.85 ▼0.36670.24 ▲26.4360.17 ▲10.19
Media Library /wp-admin/upload.php1,382 ▼94.20 ▼0.0099.78 ▼0.9941.60 ▼2.20

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'PXB_Exception' not found in wp-content/plugins/parex-bridge-for-quickbooks-xero/classes/exceptions/class-pxb-missing-dependencies-exception.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/parex-bridge-for-quickbooks-xero/config/const.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Contributors: Plugin contributors not specified
The official readme.txt is a good inspiration

parex-bridge-for-quickbooks-xero/parex-bridge-for-quickbooks-and-xero.php 92% from 13 tests

The main PHP file in "Parex Bridge for Quickbooks & Xero" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("parex-bridge-for-quickbooks-xero.php" instead of "parex-bridge-for-quickbooks-and-xero.php")

Code Analysis Passed 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
Success! There were no dangerous files found in this plugin9,955 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS31,223159,216
PHP1313063694
JavaScript18145

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.31
Average class complexity2.88
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1565.22%
▷ Protected methods00.00%
▷ Private methods834.78%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/wc-qb-connection.png74.32KB22.58KB▼ 69.61%
assets/img/wcqb.png12.13KB4.85KB▼ 60.04%
assets/img/wcxo.png12.07KB4.73KB▼ 60.78%
assets/img/parexbridge.png0.61KB0.44KB▼ 28.09%
assets/img/parexlogo.png10.95KB4.12KB▼ 62.36%