78% 2parale-for-woocommerce

Code Review | 2Parale for WooCommerce

WordPress plugin 2Parale for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: 2parale-for-wooco...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 18, 2016
  • Latest release: Feb 18, 2016
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: tetele (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,194 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by 2Parale for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.98 ▼4.53
Dashboard /wp-admin3.31 ▲0.0143.65 ▼5.26
Posts /wp-admin/edit.php3.36 ▲0.0050.23 ▲1.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.86 ▼18.31
Media Library /wp-admin/upload.php3.23 ▲0.0035.25 ▲1.28

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

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

Browser metrics Passed 4 tests

Checking browser requirements for 2Parale for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.23 ▼1.354.34 ▲2.5240.97 ▼0.42
Dashboard /wp-admin2,206 ▲324.89 ▼1.01112.75 ▲3.6037.95 ▼9.09
Posts /wp-admin/edit.php2,089 ▼32.06 ▼0.1040.99 ▼0.6734.65 ▼4.74
Add New Post /wp-admin/post-new.php1,533 ▼023.20 ▼0.19657.26 ▲38.5946.80 ▼3.56
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0795.94 ▼0.8940.68 ▼1.53

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% 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 0% 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/2parale-for-woocommerce/plugin.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/2parale-for-woocommerce/integration.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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
Attributes that require attention:
  • Requires at least: Version not formatted correctly
The official readme.txt is a good inspiration

2parale-for-woocommerce/plugin.php 92% from 13 tests

The entry point to "2Parale for WooCommerce" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("2parale-for-woocommerce.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected116 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22913116

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.50
▷ Minimum class complexity2.00
▷ Maximum class complexity9.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin