89% openpix-for-woocommerce

Code Review | Pix para Woocommerce – OpenPix

WordPress plugin Pix para Woocommerce – OpenPix scored89%from 54 tests.

About plugin

Code review

54 tests

User reviews

5 reviews

Install metrics

600+ active /9,465 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Analyzing server-side resources used by Pix para Woocommerce – OpenPix
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.84 ▼6.10
Dashboard /wp-admin3.33 ▲0.0246.12 ▼6.98
Posts /wp-admin/edit.php3.38 ▲0.0247.49 ▲0.41
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.18 ▼5.03
Media Library /wp-admin/upload.php3.25 ▲0.0233.25 ▼1.69

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Pix para Woocommerce – OpenPix
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.18 ▼0.171.70 ▲0.0343.31 ▼4.38
Dashboard /wp-admin2,198 ▲215.60 ▲0.0487.05 ▼16.6740.68 ▼4.06
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0140.43 ▲3.6035.03 ▼6.67
Add New Post /wp-admin/post-new.php1,526 ▼023.00 ▲0.02673.89 ▼19.1362.50 ▲8.39
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0299.82 ▼22.9843.16 ▼5.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • License uri: Invalid URI ("")
You can take inspiration from this readme.txt

openpix-for-woocommerce/woocommerce-openpix.php 85% from 13 tests

"Pix para Woocommerce – OpenPix" version 2.10.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("openpix-for-woocommerce.php" instead of "woocommerce-openpix.php")
  • 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

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
Good job! No executable or dangerous file extensions detected3,655 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP87461923,313
PO File2104136260
CSS13082

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity47.67
▷ Minimum class complexity1.00
▷ Maximum class complexity104.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods138
▷ Static methods1813.04%
▷ Public methods13497.10%
▷ Protected methods00.00%
▷ Private methods42.90%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin