84% woocommerce-mundipagg

Code Review | Claudio Sanches - MundiPagg for WooCommerce

WordPress plugin Claudio Sanches - MundiPagg for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-mundi...
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Feb 15, 2016
  • Latest release: Aug 11, 2020
  • Number of updates: 12
  • Update frequency: every 160.7 days
  • Top authors: claudiosanches (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

40+ active /2,656 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Claudio Sanches - MundiPagg for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.66 ▲2.34
Dashboard /wp-admin3.31 ▲0.0149.46 ▼1.95
Posts /wp-admin/edit.php3.37 ▲0.0148.01 ▼5.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.26 ▼0.56
Media Library /wp-admin/upload.php3.24 ▲0.0137.48 ▲2.78

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Claudio Sanches - MundiPagg for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.17 ▼0.181.57 ▼0.0939.85 ▼4.65
Dashboard /wp-admin2,203 ▲235.61 ▲0.0788.43 ▼0.4540.50 ▼0.56
Posts /wp-admin/edit.php2,112 ▲91.97 ▼0.1439.67 ▲4.9236.39 ▼2.68
Add New Post /wp-admin/post-new.php1,534 ▲823.54 ▲0.41673.50 ▲58.7153.72 ▲0.46
Media Library /wp-admin/upload.php1,408 ▲114.18 ▼0.0295.52 ▼10.6047.15 ▲2.06

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/woocommerce-mundipagg/uninstall.php:10

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: woocommerce, payment gateway

woocommerce-mundipagg/woocommerce-mundipagg.php Passed 13 tests

"Claudio Sanches - MundiPagg for WooCommerce" version 2.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
33 characters long description:
MundiPagg gateway for WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,326 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP212784771,312
JavaScript24014

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity39.50
▷ Minimum class complexity14.00
▷ Maximum class complexity92.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods49
▷ Static methods816.33%
▷ Public methods3877.55%
▷ Protected methods918.37%
▷ Private methods24.08%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin