84% wc-aarin-pix

Code Review | Pagamento Pix da Aarin

WordPress plugin Pagamento Pix da Aarin scored 84% from 54 tests.

About plugin

  • Plugin page: wc-aarin-pix
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: May 18, 2021
  • Latest release: Sep 20, 2022
  • Number of updates: 8
  • Update frequency: every 61.4 days
  • Top authors: apiki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,138 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.01MB] [CPU: ▼5.95ms] Passed 4 tests

An overview of server-side resources used by Pagamento Pix da Aarin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.40 ▼4.19
Dashboard /wp-admin3.32 ▲0.0244.23 ▼0.79
Posts /wp-admin/edit.php3.37 ▲0.0147.09 ▼0.68
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.79 ▼18.15
Media Library /wp-admin/upload.php3.24 ▲0.0134.96 ▲1.68

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Pagamento Pix da Aarin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.201.55 ▼0.2741.34 ▲0.88
Dashboard /wp-admin2,203 ▲245.82 ▲0.95103.72 ▲0.0738.62 ▼4.40
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0440.10 ▲3.7735.31 ▲0.95
Add New Post /wp-admin/post-new.php1,514 ▼1917.67 ▼5.65671.63 ▲39.1952.54 ▲6.96
Media Library /wp-admin/upload.php1,382 ▼34.26 ▲0.0495.40 ▼7.8441.47 ▲0.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • _wc_aarin_pay_pix_page_id
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wc-aarin-pix/templates/thank-you-page.php:130

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: pix, cart, payments, checkout, gateway...

wc-aarin-pix/wc-aarin-pix.php Passed 13 tests

The main file in "Pagamento Pix da Aarin" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
51 characters long description:
Gateway de pagamento Pix da Aarin para WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,372 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP203323771,353
Markdown19015
JSON1004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity13.17
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits1
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods73
▷ Static methods1013.70%
▷ Public methods6386.30%
▷ Protected methods810.96%
▷ Private methods22.74%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
There were not PNG files found in your plugin